00001 //====================================================================== 00031 //====================================================================== 00032 00033 #ifndef SDHLIBRARY_SETTINGS_h_ 00034 #define SDHLIBRARY_SETTINGS_h_ 00035 00036 //---------------------------------------------------------------------- 00037 // System Includes - include with <> 00038 //---------------------------------------------------------------------- 00039 00040 00041 //---------------------------------------------------------------------- 00042 // Project Includes - include with "" 00043 //---------------------------------------------------------------------- 00044 00045 00046 //---------------------------------------------------------------------- 00047 // Defines, enums, unions, structs 00048 //---------------------------------------------------------------------- 00049 00058 00059 #define SDH_USE_NAMESPACE 1 00060 00062 //----------------------------------------------------------------- 00063 00064 00075 #if SDH_USE_NAMESPACE 00076 # define NAMESPACE_SDH_START namespace SDH { 00077 # define NAMESPACE_SDH_END } 00078 # define USING_NAMESPACE_SDH using namespace SDH; 00079 #else 00080 # define NAMESPACE_SDH_START 00081 # define NAMESPACE_SDH_END 00082 # define USING_NAMESPACE_SDH 00083 #endif 00084 00085 00086 //--------------------- 00087 #if defined( OSNAME_CYGWIN ) || defined( OSNAME_LINUX ) 00088 //#warning "using settings for Cygwin and Linux" 00089 00090 // settings when run on Windows/cygwin or Linux: 00091 00093 # define SDH_USE_VCC 0 00094 00096 # define SDH__attribute__( ... ) __attribute__(__VA_ARGS__) 00097 00099 # define SDH_ISNAN( V ) isnan( (V) ) 00100 00101 //--------------------- 00102 // WIN32 might be defined by ntcan.h 00103 #elif defined( WIN32 ) && ( ! defined( OSNAME_CYGWIN ) ) && ( ! defined( OSNAME_LINUX ) ) 00104 //#warning "using settings for VCC" 00105 00107 # define SDH_USE_VCC 1 00108 00110 # define SDH__attribute__( ... ) 00111 00113 # define SDH_ISNAN( V ) _isnan( (V) ) 00114 00115 typedef long ssize_t; 00116 00117 //--------------------- 00118 #else 00119 # error "Unknown compiler, please adjust settings!" 00120 #endif 00121 00122 00124 00125 //---------------------------------------------------------------------- 00126 // Global variables (declarations) 00127 //---------------------------------------------------------------------- 00128 00129 00130 //---------------------------------------------------------------------- 00131 // External functions and classes (declarations) 00132 //---------------------------------------------------------------------- 00133 00134 00135 //---------------------------------------------------------------------- 00136 // Function prototypes (function declarations) 00137 //---------------------------------------------------------------------- 00138 00139 00140 //---------------------------------------------------------------------- 00141 // Class declarations 00142 //---------------------------------------------------------------------- 00143 00144 00145 #endif 00146 00147 00148 //====================================================================== 00149 /* 00150 Here are some settings for the emacs/xemacs editor (and can be safely ignored): 00151 (e.g. to explicitely set C++ mode for *.h header files) 00152 00153 Local Variables: 00154 mode:C++ 00155 mode:ELSE 00156 End: 00157 */ 00158 //======================================================================