diff --git a/src/sbbs3/sbbsdefs.h b/src/sbbs3/sbbsdefs.h index 4472b8e34ddd6f5f82109e1812137a8d94201e24..d60cbfd465f2658fbdf680fa3d7a8649e320d0b9 100644 --- a/src/sbbs3/sbbsdefs.h +++ b/src/sbbs3/sbbsdefs.h @@ -35,9 +35,9 @@ /*************/ #define VERSION "3.21" // Version: Major.minor as 4-char string -#define VERSION_INT ((DEC_CHAR_TO_INT(VERSION[0]) * 100) + (DEC_CHAR_TO_INT(VERSION[2]) * 10) + DEC_CHAR_TO_INT(VERSION[3])) // Version as increasing 3-decimal-digit integer value #define REVISION 'a' // Revision: lowercase letter -#define VERSION_NUM (((VERSION_INT) * 100) + (tolower(REVISION) - 'a')) +#define VERSION_INT ((DEC_CHAR_TO_INT(VERSION[0]) * 100) + (DEC_CHAR_TO_INT(VERSION[2]) * 10) + DEC_CHAR_TO_INT(VERSION[3])) // Version as increasing 3-decimal-digit integer value +#define VERSION_NUM (((VERSION_INT) * 100) + (tolower(REVISION) - 'a')) // Version and revision as a 5-decimal-digit integer value #define VERSION_HEX (((VERSION_INT / 100) * 0x10000) + (((VERSION_INT % 100) / 10) * 0x1000) + ((VERSION_INT % 10) * 0x100) + (tolower(REVISION) - 'a')) #define VERSION_NOTICE "Synchronet BBS for " PLATFORM_DESC \