Reverted and fixed changes in version.h

This commit is contained in:
Daniel Marjamäki 2020-05-26 23:29:12 +02:00
parent 4d5fe6ec5e
commit 6a7eada417
1 changed files with 7 additions and 4 deletions

View File

@ -1,14 +1,17 @@
// For a release version x.y the MAJOR should be x and both MINOR and DEVMINOR should be y.
// After a release the DEVMINOR is incremented. MAJOR=x MINOR=y, DEVMINOR=y+1
#define CPPCHECK_MAJOR 2 #define CPPCHECK_MAJOR 2
#define CPPCHECK_MINOR 0 #define CPPCHECK_MINOR 0
#define CPPCHECK_DEVMINOR 99 #define CPPCHECK_DEVMINOR 1
#define STRINGIFY(x) STRING(x) #define STRINGIFY(x) STRING(x)
#define STRING(VER) #VER #define STRING(VER) #VER
#if CPPCHECK_DEVMINOR < 99 #if CPPCHECK_MINOR == CPPCHECK_DEVMINOR
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_MINOR) #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR)
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0
#else #else
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_MINOR) " dev" #define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev"
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0 #define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0
#endif #endif
#define LEGALCOPYRIGHT L"Copyright (C) 2007-2020 Cppcheck team." #define LEGALCOPYRIGHT L"Copyright (C) 2007-2020 Cppcheck team."