调整版本定义

This commit is contained in:
gb 2022-07-28 17:37:04 +08:00
parent 6d7488d5d8
commit 7bb27b3f8a
2 changed files with 9 additions and 8 deletions

View File

@ -19,9 +19,6 @@
#include "../../sdk/include/sane/sane_option_definitions.h" #include "../../sdk/include/sane/sane_option_definitions.h"
#include "sane_option.h" #include "sane_option.h"
#ifndef VERSION_BUILD
#define VERSION_BUILD 22030
#endif
#ifndef SIGUSR1 #ifndef SIGUSR1
#define SIGUSR1 10 #define SIGUSR1 10
#endif #endif

View File

@ -28,13 +28,17 @@
#include "sane/sane_ex.h" #include "sane/sane_ex.h"
#if defined(WIN32) || defined(_WIN64) #if defined(WIN32) || defined(_WIN64)
#include "../../../sdk/include/huagao/brand.h"
#ifndef HGSCANNER_EXPORT #ifndef HGSCANNER_EXPORT
#ifdef _DEBUG #pragma comment(lib, "scanner.lib")
#pragma comment(lib, "debug/scanner.lib") #endif
#define VERSION_MAJOR VERSION_MAIN
#define VERSION_MINOR VERSION_SUB
#define VERSION_YEAR VERSION_BUILD1
#define VERSION_BUILD VERSION_PATCH
#define GET_BUILD_VER VERSION_BUILD
#else #else
#pragma comment(lib, "release/scanner.lib") #define GET_BUILD_VER VERSION_BUILD - 100000
#endif
#endif
#endif #endif
/********************************************************************************************* /*********************************************************************************************