[Cppunit-devel] config-mac
Brought to you by:
blep
From: Duane M. <du...@us...> - 2001-09-28 02:46:18
|
I have started a port of CppUnit to the Macintosh. Actually the basic stuff (no GUI) works just find. But it does need a config file (Mac's dont have autoconfig :-). Here is the config-mac file I put together based on some of the other config files. I made the following change to Portablity.h as well" /* include platform specific config */ #if defined(__BORLANDC__) # include <cppunit/config-bcb5.h> #elif defined (_MSC_VER) # include <cppunit/config-msvc6.h> #elif defined(macintosh) # include <cppunit/config-mac.h> #else # include <cppunit/config-auto.h> #endif --- BEGIN config-mac.h --- #ifndef _INCLUDE_CPPUNIT_CONFIG_MAC_H #define _INCLUDE_CPPUNIT_CONFIG_MAC_H 1 /* define if library uses std::string::compare(string,pos,n) */ #ifdef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST #undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1 #endif /* define if the library defines strstream */ #ifndef CPPUNIT_HAVE_CLASS_STRSTREAM #define CPPUNIT_HAVE_CLASS_STRSTREAM 1 #endif /* Define if you have the <cmath> header file. */ #ifdef CPPUNIT_HAVE_CMATH #undef CPPUNIT_HAVE_CMATH #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 /* define if the compiler has stringstream */ #ifndef CPPUNIT_HAVE_SSTREAM #define CPPUNIT_HAVE_SSTREAM 1 #endif /* Define if you have the <strstream> header file. */ #ifndef CPPUNIT_HAVE_STRSTREAM #define CPPUNIT_HAVE_STRSTREAM 1 #endif /* Name of package */ #ifndef CPPUNIT_PACKAGE #define CPPUNIT_PACKAGE "cppunit" #endif /* Define to 1 to use type_info::name() for class names */ #ifndef CPPUNIT_USE_TYPEINFO_NAME #define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI #endif /* Version number of package */ #ifndef CPPUNIT_VERSION #define CPPUNIT_VERSION "1.5.6" #endif /* _INCLUDE_CPPUNIT_CONFIG_MAC_H */ #endif --- END config-mac.h --- .Duane |