diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-17 21:58:21 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-17 21:58:21 +0000 |
| commit | c4ee17dc39fa7a1f62d467c76f573150e497c7e0 (patch) | |
| tree | 7d1169bc0ffa1ead9399401376241f9a8ed5b360 /include/cppunit/Portability.h | |
| parent | 7cafa0d515eab99e3d5f92d8fc8a6aa42f30f6fe (diff) | |
| download | cppunit-c4ee17dc39fa7a1f62d467c76f573150e497c7e0.tar.gz | |
Added for new config handling.
Diffstat (limited to 'include/cppunit/Portability.h')
| -rw-r--r-- | include/cppunit/Portability.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/cppunit/Portability.h b/include/cppunit/Portability.h new file mode 100644 index 0000000..2f4fa75 --- /dev/null +++ b/include/cppunit/Portability.h @@ -0,0 +1,42 @@ +#ifndef CPPUNIT_PORTABILITY_H +#define CPPUNIT_PORTABILITY_H + +/* include platform specific config */ +#if defined(__BORLANDC__) +# include <cppunit/config-bcb5.h> +#elif defined (_MSC_VER) +# include <cppunit/config-msvc6.h> +#else +# include <cppunit/config-auto.h> +#endif + +/* set non platform specific defines */ + +/* Define to 1 if the compiler supports Run-Time Type Identification */ +#ifdef CPPUNIT_DONT_USE_TYPEINFO +#define CPPUNIT_USE_TYPEINFO 0 +#else +#define CPPUNIT_USE_TYPEINFO 1 +#endif + +/* Define to 1 if you wish to have the old-style macros + assert(), assertEqual(), assertDoublesEqual(), and assertLongsEqual() */ +#ifdef CPPUNIT_DISABLE_NAKED_ASSERT +#define CPPUNIT_ENABLE_NAKED_ASSERT 0 +#else +#define CPPUNIT_ENABLE_NAKED_ASSERT 1 +#endif + +/* Define to 1 if the preprocessor expands (#foo) to "foo" (quotes incl.) */ +#define CPPUNIT_HAVE_CPP_SOURCEANNOTATION 1 + + +/* perform portability hacks */ + +#if _MSC_VER > 1000 // VC++ +#pragma once +#pragma warning( disable : 4786 ) // disable warning debug symbol > 255... +#endif // _MSC_VER > 1000 + + +#endif // CPPUNIT_PORTABILITY_H |
