In WConfig.h the current Wt version is made up from 3 version numbers: #define WT_SERIES 2 #define WT_MAJOR 99 #define WT_MINOR 0
/*! \brief A constant that encodes the library version of %Wt * * You may use this constant to check for the version of %Wt at build-time. */ #define WT_VERSION (((WT_SERIES & 0xff) << 24) | ((WT_MAJOR & 0xff) << 16) | ((WT_MINOR & 0xff) << 8)) However, when you test for Wt 2.99.0 or greater you need something like this in your code: #if WT_VERSION >= 0x02630000 ... Because 99 is hex 0x63. Instead, shouldn't the 3 numbers be in hex: #define WT_SERIES 0x2 #define WT_MAJOR 0x99 #define WT_MINOR 0x0 So that the code check can be: #if WT_VERSION >= 0x02990000 ... Which is more readable. -- Richard ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
