libisdn
|
00001 /* 00002 * libisdn features/version 00003 * 00004 */ 00005 #ifndef __LIBISDN_FEATURES_H__ 00006 #define __LIBISDN_FEATURES_H__ 00007 00018 #define LIBISDN_VERSION(maj, min, patch) \ 00019 (((maj) << 24) | ((min) << 16) | ((patch) << 8) | 0U) 00020 00031 #define LIBISDN_FEATURE(x) \ 00032 (defined(LIBISDN_FEATURE_##x) && (LIBISDN_FEATURE_##x == 1)) 00033 00044 #define LIBISDN_PLATFORM(x) \ 00045 (defined(LIBISDN_PLATFORM_##x) && (LIBISDN_PLATFORM_##x == 1)) 00046 00058 #define LIBISDN_COMPILER(x) \ 00059 (defined(LIBISDN_COMPILER_##x) && (LIBISDN_COMPILER_##x == 1)) 00060 00061 /********************************************************************************* 00062 * Do not touch anything below (autogenerated values) 00063 *********************************************************************************/ 00064 00065 /* version components */ 00066 #define LIBISDN_VERSION_MAJOR 0 00067 #define LIBISDN_VERSION_MINOR 0 00068 #define LIBISDN_VERSION_PATCH 1 00069 00070 /* platform we run on */ 00071 #define LIBISDN_PLATFORM_LINUX 1 00072 #define LIBISDN_PLATFORM_STRING "LINUX" 00073 00074 /* special shortcut for windows (and maybe others) */ 00075 #if LIBISDN_PLATFORM(WIN32) || LIBISDN_PLATFORM(WIN64) 00076 #define LIBISDN_PLATFORM_WINDOWS 1 00077 #endif 00078 00079 /* compiler (vendor) we were built from */ 00080 #define LIBISDN_COMPILER_GNU 1 00081 #define LIBISDN_COMPILER_STRING "GNU" 00082 00083 /* version, integer and string value */ 00084 #define LIBISDN_VERSION_INT \ 00085 LIBISDN_VERSION(LIBISDN_VERSION_MAJOR, LIBISDN_VERSION_MINOR, LIBISDN_VERSION_PATCH) 00086 00087 #define LIBISDN_VERSION_STRING \ 00088 "0.0.1" 00089 00090 /* feature flags */ 00091 #define LIBISDN_FEATURE_API2 1 00092 00093 #endif /* __LIBISDN_FEATURES_H__ */