CppUnit project page CppUnit home page

config.h

Go to the documentation of this file.
00001 #ifndef CPPUT_CONFIG_H_INCLUDED
00002 # define CPPUT_CONFIG_H_INCLUDED
00003 
00004 # include <cpptl/config.h>
00005 
00006 # define CPPUT_BOOST_FRIENDLY
00007 //# define CPPUT_DLL_SUPPORT
00008 //# define CPPUT_USE_WIN32_DLL     // LoadLibrary
00009 //# define CPPUT_USE_DL_DLL      // dlopen
00010 //# define CPPUT_USE_SHL_DLL     // shl_open
00011 //# define CPPUT_USE_BEOS_DLL
00012 
00013 # define CPPUT_USE_RTTI_TO_NAME_SUITE 1
00014 
00015 // compiler specific stuffs...
00017 
00018 # if _MSC_VER <= 1200    // VC++ 6 or before
00019 #  pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
00020 #  define CPPUT_STD_VECTOR_ITERATOR_IS_POINTER 1
00021 #  define CPPUT_HAS_FUNCTION_TEMPLATE_ORDERING 0
00022 #  define CPPUT_HAS_TEMPLATE_PARTIAL_SPECIALIZATION 0
00023 # endif
00024 
00025 # if _MSC_VER <= 1300    // VC++ 7.0 or before
00026 // VC++ 7.0 does have deduced typename, but their behavior is not consistent with
00027 // VC++ 7.1. Since it is not required to compile, we just pretend it's not available.
00028 #  define CPPUT_NO_DEDUCED_TYPENAME
00029 # endif
00030 
00031 # if _MSC_VER >= 1310 // VC++ 7.1
00032 #  define CPPUT_HAS_FUNCTION_TEMPLATE_ORDERING 1
00033 #  define CPPUT_HAS_TEMPLATE_PARTIAL_SPECIALIZATION 1
00034 #  pragma warning( disable : 4800 ) // forcing value to bool performance warning
00035 #  pragma warning( disable : 4018 ) // '<' signed/unsigned mismatch
00036 # endif
00037 
00038 // compiler suffix...
00040 
00041 // Set CPPUT_DEDUCED_TYPENAME depending on the compiler support for deduced typename.
00042 # ifdef CPPUT_NO_DEDUCED_TYPENAME
00043 #  define CPPUT_DEDUCED_TYPENAME
00044 # else
00045 #  define CPPUT_DEDUCED_TYPENAME typename
00046 # endif
00047 
00048 # ifdef CPPUT_NO_FUNCTION_TEMPLATE_ORDERING
00049 #  define CPPUT_HAS_FUNCTION_TEMPLATE_ORDERING 0
00050 # endif
00051 
00052 # ifdef CPPUT_NO_TEMPLATE_PARTIAL_SPECIALIZATION
00053 #  define CPPUT_HAS_TEMPLATE_PARTIAL_SPECIALIZATION 0
00054 # endif
00055 
00056 # ifdef CPPUT_USE_BOOST_SHARED_PTR
00057 #  undef CPPUT_BOOST_FRIENDLY
00058 #  define CPPUT_BOOST_FRIENDLY 1
00059 # endif
00060 
00061 # if !defined(CPPUT_NO_DLL_SUPPORT)
00062 # define CPPUT_DLL_SUPPORT 1
00063 # endif
00064 
00065 // STL specific stuffs...
00067 
00068 
00069 // define CPPUT_DLL_BUILD when building CppUnit dll.
00070 # ifdef CPPUT_DLL_BUILD
00071 #  define CPPUT_API __declspec(dllexport)
00072 # endif
00073 
00074 // define CPPUT_DLL when linking to CppUnit dll.
00075 # if defined( CPPUT_DLL )
00076 #  define CPPUT_API __declspec(dllimport)
00077 # endif
00078 
00079 // generating or linking to a static library
00080 #if !defined( CPPUT_API )
00081 #  define CPPUT_API
00082 #endif
00083 
00084 // Auto-link feature, define symbol CPPUT_NO_AUTO_LINK to disable
00085 # if !defined(CPPUT_NO_AUTO_LINK)
00086 #  define CPPUT_LIB_NAME "cpput"
00087 //#  include <cpput/autolink.h>
00088 # endif
00089 
00090 #endif // CPPUT_CONFIG_H_INCLUDED

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers