config.h
Go to the documentation of this file.00001
00009 #ifndef __CONFIG_H__
00010 #define __CONFIG_H__
00011
00012 #ifndef _WIN32
00013
00014 #define _STDLIB_THROWS
00015 #define _GCC4
00016 #define _NO_STRICMP
00017 #define _NO_WIN_TYPES
00018 #define _NO_GETTICKCOUNT
00019 #define _NO_AUDITFACILITY
00020 #define _NEEDS_ASSERT_MACRO
00021 #elif _MSC_VER == 1310
00022 #define _NEEDS_ASSERT_MACRO
00023 #endif
00024
00025
00026
00027 #ifdef _STDLIB_THROWS
00028 #define STDLIB_SUPER_THROW throw()
00029 #else
00030 #define STDLIB_SUPER_THROW
00031 #endif //defined _STDLIB_THROWS
00032
00033 #ifdef _NO_STRICMP
00034 #define stricmp strcasecmp
00035 #define strnicmp strncasecmp
00036 #endif //_NO_STRICMP
00037
00038 #ifdef _NO_STRCASECMP
00039 #ifdef _NO_STRICMP
00040 #error Neither stricmp nor strcasecmp is defined, or your configuration macros are wrong!
00041 #endif //_NO_STRICMP
00042 #define strcasecmp stricmp
00043 #define strncasecmp strnicmp
00044 #endif //_NO_STRCASECMP
00045
00046 #ifdef _NO_WIN_TYPES
00047 typedef bool BOOL;
00048 typedef unsigned char BYTE;
00049 typedef long LONG;
00050 typedef unsigned long DWORD;
00051 typedef unsigned long ULONG;
00052 #endif //_NO_WIN_TYPES
00053
00054 #ifdef _NEEDS_ASSERT_MACRO
00055 #define _ASSERT assert
00056 #endif //_NEEDS_ASSERT_MACRO
00057
00058 #ifdef _NO_AUDITFACILITY
00059 #define AuditString(a,b,c,d,e,f,g)
00060 #endif
00061
00062 #if defined(_WIN32) || defined (WIN32)
00063 #if defined(_MSC_VER)
00064
00065
00066 #pragma warning(disable : 4275)
00067
00068
00069 #pragma warning( disable : 4290 )
00070 #endif //defined(_MSC_VER)
00071 #endif // defined(_WIN32) || defined(WIN32)
00072
00073 #if defined(_WIN32) || defined(WIN32)
00074 #define SLEEP(n) Sleep(n)
00075 #else
00076 #define SLEEP(n) usleep(n)
00077 #endif // defined(_WIN32) || defined(WIN32)
00078
00079 #endif