summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-06-17 21:58:21 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-06-17 21:58:21 +0000
commitc4ee17dc39fa7a1f62d467c76f573150e497c7e0 (patch)
tree7d1169bc0ffa1ead9399401376241f9a8ed5b360 /include/cppunit
parent7cafa0d515eab99e3d5f92d8fc8a6aa42f30f6fe (diff)
downloadcppunit-c4ee17dc39fa7a1f62d467c76f573150e497c7e0.tar.gz
Added for new config handling.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/Portability.h42
-rw-r--r--include/cppunit/config-bcb5.h39
-rw-r--r--include/cppunit/config-msvc6.h38
3 files changed, 119 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
diff --git a/include/cppunit/config-bcb5.h b/include/cppunit/config-bcb5.h
new file mode 100644
index 0000000..0009b85
--- /dev/null
+++ b/include/cppunit/config-bcb5.h
@@ -0,0 +1,39 @@
+#ifndef _INCLUDE_CPPUNIT_CONFIG_BCB5_H
+#define _INCLUDE_CPPUNIT_CONFIG_BCB5_H 1
+
+/* include/cppunit/config-bcb5.h. Manually adapted from
+ include/cppunit/config-auto.h */
+
+/* define if library uses std::string::compare(string,pos,n) */
+#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
+#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1
+#endif
+
+/* Define if you have the <dlfcn.h> header file. */
+#ifdef CPPUNIT_HAVE_DLFCN_H
+#undef CPPUNIT_HAVE_DLFCN_H
+#endif
+
+/* define to 1 if the compiler implements namespaces */
+#ifndef CPPUNIT_HAVE_NAMESPACES
+#define CPPUNIT_HAVE_NAMESPACES 1
+#endif
+
+/* define if the compiler supports Run-Time Type Identification */
+#ifndef CPPUNIT_HAVE_RTTI
+#define CPPUNIT_HAVE_RTTI 1
+#endif
+
+/* Name of package */
+#ifndef CPPUNIT_PACKAGE
+#define CPPUNIT_PACKAGE "cppunit"
+#endif
+
+/* Version number of package */
+#ifndef CPPUNIT_VERSION
+#define CPPUNIT_VERSION "1.5.5"
+#endif
+
+
+/* _INCLUDE_CPPUNIT_CONFIG_BCB5_H */
+#endif
diff --git a/include/cppunit/config-msvc6.h b/include/cppunit/config-msvc6.h
new file mode 100644
index 0000000..66747ae
--- /dev/null
+++ b/include/cppunit/config-msvc6.h
@@ -0,0 +1,38 @@
+#ifndef _INCLUDE_CPPUNIT_CONFIG_MSVC6_H
+#define _INCLUDE_CPPUNIT_CONFIG_MSVC6_H 1
+
+/* include/cppunit/config-msvc6.h. Manually adapted from
+ include/cppunit/config-auto.h */
+
+/* define if library uses std::string::compare(string,pos,n) */
+#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
+#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1
+#endif
+
+/* Define if you have the <dlfcn.h> header file. */
+#ifdef CPPUNIT_HAVE_DLFCN_H
+#undef CPPUNIT_HAVE_DLFCN_H
+#endif
+
+/* define to 1 if the compiler implements namespaces */
+#ifndef CPPUNIT_HAVE_NAMESPACES
+#define CPPUNIT_HAVE_NAMESPACES 1
+#endif
+
+/* define if the compiler supports Run-Time Type Identification */
+#ifndef CPPUNIT_HAVE_RTTI
+#define CPPUNIT_HAVE_RTTI 1
+#endif
+
+/* Name of package */
+#ifndef CPPUNIT_PACKAGE
+#define CPPUNIT_PACKAGE "cppunit"
+#endif
+
+/* Version number of package */
+#ifndef CPPUNIT_VERSION
+#define CPPUNIT_VERSION "1.5.5"
+#endif
+
+/* _INCLUDE_CPPUNIT_CONFIG_MSVC6_H */
+#endif