AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

string_CompConf.h

Go to the documentation of this file.
00001 #ifndef STRING_COMPILER_CONFIG_H
00002 #define STRING_COMPILER_CONFIG_H
00003 
00008 // Old versions of xlC need STLPort 3.0, where no string class is available.
00009 // The classes require linking with libibmcl.a
00010 
00011 #if defined __xlC__ 
00012 # if __IBMCPP__ < 360
00013 #  include "xlc_string.h"
00014 # else
00015 #  include <string>
00016 # endif
00017 #elif defined __KCC
00018 # include "bstring.h"
00019 #else 
00020 # if (__GNUC__==2 && __GNUC_MINOR__ < 8) 
00021 #  define _G_NO_EXTERN_TEMPLATES 1
00022 # endif
00023 # include <string>
00024 # if (__GNUC__==2 && __GNUC_MINOR__ < 8) 
00025 #  undef  _G_NO_EXTERN_TEMPLATES 
00026 # endif
00027 #endif
00028 
00029 // Uncomment one of this to use a string defined in a namespace just as string 
00030 // #define _STDSTRING 1 
00031 // #define _STLSTRING 1 
00032 
00033 #if __GNUC__ >= 3
00034 # define _STDSTRING 1
00035 #elif (defined __xlC__ && __IBMCPP__ >= 500)
00036 # define _STLSTRING 1
00037 #endif
00038 
00039 #ifdef _STDSTRING
00040  typedef std::string string;
00041 #elif _STLSTRING
00042  typedef _STL::string string;
00043 #endif
00044 
00045 #endif


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04