35 #define OCAD_VERSION "0.1.0" 36 #define OCAD_VERSION_MAJOR 0 37 #define OCAD_VERSION_MINOR 1 38 #define OCAD_VERSION_REV 0 40 #ifndef OCAD_COMPUTE_VERSION 41 #define OCAD_COMPUTE_VERSION(maj,min,rev) ((maj)*10000+(min)*100+rev) // maj - any, min < 99, rev < 99 44 #define OCAD_VERSION_NUM OCAD_COMPUTE_VERSION(OCAD_VERSION_MAJOR,OCAD_VERSION_MINOR,OCAD_VERSION_REV) 47 #define CHECK_VERSION(major,minor,rev) \ 48 (OCAD_VERSION_MAJOR > (major) || \ 49 (OCAD_VERSION_MAJOR == (major) && OCAD_VERSION_MINOR > (minor)) || \ 50 (OCAD_VERSION_MAJOR == (major) && OCAD_VERSION_MINOR == (minor) && OCAD_VERSION_REV >= (release))) 52 #define DWG_VERSION_STR_SIZE 6 55 #define OCAD_EXTERN extern 57 # if defined (_WIN32) || defined (WINDOWS) 60 # define OCAD_EXTERN extern __attribute__((dllexport)) 62 # define OCAD_EXTERN extern __declspec(dllexport) 66 # define OCAD_EXTERN extern __attribute__((dllimport)) 68 # define OCAD_EXTERN extern __declspec(dllimport) 73 # define OCAD_EXTERN __attribute__((visibility("default"))) 75 # define OCAD_EXTERN extern 81 void DebugMsg(
const char* format, ...);