Class Hierarchy   Class Index   Method Index  

CHMglobalDefines.h

00001 #ifndef _CHM_GLOBAL_DEFINES_H_
00002 #define _CHM_GLOBAL_DEFINES_H_
00003 
00004 // The purpose of this file is to allow various settings for
00005 // the compilation of the Chameleon libraries to be applied globally.
00006  
00007 // Define the macro CHM_USE_STL if your code uses the Standard Template
00008 // library or Standard C++ library as it is sometimes called.
00009 // This ensures that the old style iostream libraries are not included
00010 // in the same project.  i.e. with CHM_USE_STL included the following
00011 // settings are applied:
00012 // #include <strstream>
00013 // #include <iostream>
00014 // #include <fstream>
00015 // using namespace std;
00016 // instead of 
00017 // #include <strstream.h>
00018 // #include <fstream.h>
00019 // #include <strstream.h>
00020 // #define CHM_USE_STL
00021 
00022 #ifdef __BCPLUSPLUS__
00023 #   define CHM_USE_STL
00024 #endif
00025 
00026 #if _MSC_VER == 1310
00027 #   define CHM_USE_STL
00028 #endif
00029 
00030 #ifdef CHM_USE_STL
00031 #   pragma message("Using Standard C++ Template Library.")
00032 #   pragma message("See the file CHMglobalDefines.h in the CHM directory for")
00033 #   pragma message("more information.")
00034 #else
00035 #   pragma message("Not using Standard C++ Template Library.")
00036 #   pragma message("See the file CHMglobalDefines.h in the CHM directory for")
00037 #   pragma message("more information.")
00038 #endif // CHM_USE_STL
00039 
00040 
00041 #endif // end of defensive include