00001 #ifndef UNITTEST_CONFIG_H
00002 #define UNITTEST_CONFIG_H
00003
00004
00005
00006 #if defined(_MSC_VER)
00007 #pragma warning(disable:4127) // conditional expression is constant
00008 #pragma warning(disable:4702) // unreachable code
00009 #pragma warning(disable:4722) // destructor never returns, potential memory leak
00010
00011 #if (_MSC_VER == 1200) // VC6
00012 #pragma warning(disable:4786)
00013 #pragma warning(disable:4290)
00014 #endif
00015 #endif
00016
00017 #if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
00018 defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
00019 #define UNITTEST_POSIX
00020 #endif
00021
00022 #if defined(__MINGW32__)
00023 #define UNITTEST_MINGW
00024 #endif
00025
00026
00027
00028
00029
00030
00031 #endif