root/library/tests/unittest-cpp/Config.h @ 706

Revision 706, 0.9 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1#ifndef UNITTEST_CONFIG_H
2#define UNITTEST_CONFIG_H
3
4// Standard defines documented here: http://predef.sourceforge.net
5
6#if defined(_MSC_VER)
7#pragma warning(disable:4127) // conditional expression is constant
8#pragma warning(disable:4702) // unreachable code
9#pragma warning(disable:4722) // destructor never returns, potential memory leak
10
11#if (_MSC_VER == 1200)  // VC6
12#pragma warning(disable:4786)
13#pragma warning(disable:4290)
14#endif
15#endif
16
17#if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
18    defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
19#define UNITTEST_POSIX
20#endif
21
22#if defined(__MINGW32__)
23#define UNITTEST_MINGW
24#endif
25
26// by default, MemoryOutStream is implemented in terms of std::ostringstream, which can be expensive.
27// uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
28
29//#define UNITTEST_USE_CUSTOM_STREAMS
30
31#endif
Note: See TracBrowser for help on using the browser.