Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

include.h

Go to the documentation of this file.
00001 //$$ include.h           include files required by various versions of C++
00002 
00003 #ifndef INCLUDE_LIB
00004 #define INCLUDE_LIB
00005 
00006 #define use_namespace                   // define name spaces
00007 
00008 //#define SETUP_C_SUBSCRIPTS              // allow element access via A[i][j]
00009 
00010 //#define OPT_COMPATIBLE                  // for use with opt++
00011 
00012 // Activate just one of the following 3 statements
00013 
00014 //#define SimulateExceptions              // use simulated exceptions
00015 #define UseExceptions                   // use C++ exceptions
00016 //#define DisableExceptions               // do not use exceptions
00017 
00018 
00019 //#define TEMPS_DESTROYED_QUICKLY         // for compilers that delete
00020           // temporaries too quickly
00021 
00022 //#define TEMPS_DESTROYED_QUICKLY_R       // the same thing but applied
00023           // to return from functions only
00024 
00025 //#define DO_FREE_CHECK                   // check news and deletes balance
00026 
00027 //#define USING_DOUBLE                    // elements of type double
00028 #define USING_FLOAT                   // elements of type float
00029 
00030 #define bool_LIB 0                      // for compatibility with my older libraries
00031 
00032 //#define ios_format_flags ios::fmtflags  // for Gnu 3 and Intel for Linux
00033 
00034 
00035 //#define _STANDARD_                    // using standard library
00036 
00037 //#define use_float_h                   // use float.h for precision data
00038 
00039 
00040 //#define HAS_INT64                     // if unsigned _int64 is recognised
00041                                         // used by newran03
00042                                         
00043 // comment out next line if Exception causes a problem
00044 #define TypeDefException
00045 
00046 //*********************** end of options set by user ********************
00047 
00048 
00049 // for Gnu C++ version 3
00050 #if defined __GNUG__ && __GNUG__ >= 3
00051    #define _STANDARD_                   // use standard library
00052    #define ios_format_flags ios::fmtflags
00053 #endif
00054 
00055 // for Intel C++ for Linux
00056 #if defined __ICC
00057    #define _STANDARD_                   // use standard library
00058    #define ios_format_flags ios::fmtflags
00059 #endif
00060 
00061 
00062 #ifdef _STANDARD_                       // using standard library
00063    #include <cstdlib>
00064    #ifdef _MSC_VER
00065       #include <limits>                 // for VC++6
00066    #endif
00067    #ifdef WANT_STREAM
00068       #include <iostream>
00069       #include <iomanip>
00070    #endif
00071    #ifdef WANT_MATH
00072       #include <cmath>
00073    #endif
00074    #ifdef WANT_STRING
00075       #include <cstring>
00076    #endif
00077    #ifdef WANT_TIME
00078       #include <ctime>
00079    #endif
00080    #ifdef WANT_FSTREAM
00081       #include <fstream>
00082    #endif
00083 #else
00084 
00085 #define DEFAULT_HEADER                  // use AT&T style header
00086                                         // if no other compiler is recognised
00087 
00088 #ifdef _MSC_VER                         // Microsoft
00089    #include <stdlib.h>
00090 
00091 //   reactivate these statements to run under MSC version 7.0
00092 //   typedef int jmp_buf[9];
00093 //   extern "C"
00094 //   {
00095 //      int __cdecl setjmp(jmp_buf);
00096 //      void __cdecl longjmp(jmp_buf, int);
00097 //   }
00098 
00099    #ifdef WANT_STREAM
00100       #include <iostream.h>
00101       #include <iomanip.h>
00102    #endif
00103    #ifdef WANT_MATH
00104       #include <math.h>
00105       #include <float.h>
00106    #endif
00107    #ifdef WANT_STRING
00108       #include <string.h>
00109    #endif
00110    #ifdef WANT_TIME
00111       #include <time.h>
00112    #endif
00113    #ifdef WANT_FSTREAM
00114       #include <fstream.h>
00115    #endif
00116    #undef DEFAULT_HEADER
00117 #endif
00118 
00119 #ifdef __ZTC__                          // Zortech
00120    #include <stdlib.h>
00121    #ifdef WANT_STREAM
00122       #include <iostream.hpp>
00123       #include <iomanip.hpp>
00124       #define flush ""                  // not defined in iomanip?
00125    #endif
00126    #ifdef WANT_MATH
00127       #include <math.h>
00128       #include <float.h>
00129    #endif
00130    #ifdef WANT_STRING
00131       #include <string.h>
00132    #endif
00133    #ifdef WANT_TIME
00134       #include <time.h>
00135    #endif
00136    #ifdef WANT_FSTREAM
00137       #include <fstream.h>
00138    #endif
00139    #undef DEFAULT_HEADER
00140 #endif
00141 
00142 #if defined __BCPLUSPLUS__ || defined __TURBOC__  // Borland or Turbo
00143    #include <stdlib.h>
00144    #ifdef WANT_STREAM
00145       #include <iostream.h>
00146       #include <iomanip.h>
00147    #endif
00148    #ifdef WANT_MATH
00149       #include <math.h>
00150       #include <float.h>            // Borland has both float and values
00151                                     // but values.h returns +INF for
00152                                     // MAXDOUBLE in BC5
00153    #endif
00154    #ifdef WANT_STRING
00155       #include <string.h>
00156    #endif
00157    #ifdef WANT_TIME
00158       #include <time.h>
00159    #endif
00160    #ifdef WANT_FSTREAM
00161       #include <fstream.h>
00162    #endif
00163    #undef DEFAULT_HEADER
00164 #endif
00165 
00166 #ifdef __GNUG__                         // Gnu C++
00167    #include <stdlib.h>
00168    #ifdef WANT_STREAM
00169       #include <iostream.h>
00170       #include <iomanip.h>
00171    #endif
00172    #ifdef WANT_MATH
00173       #include <math.h>
00174       #include <float.h>
00175    #endif
00176    #ifdef WANT_STRING
00177       #include <string.h>
00178    #endif
00179    #ifdef WANT_TIME
00180       #include <time.h>
00181    #endif
00182    #ifdef WANT_FSTREAM
00183       #include <fstream.h>
00184    #endif
00185    #undef DEFAULT_HEADER
00186 #endif
00187 
00188 #ifdef __WATCOMC__                      // Watcom C/C++
00189    #include <stdlib.h>
00190    #ifdef WANT_STREAM
00191       #include <iostream.h>
00192       #include <iomanip.h>
00193    #endif
00194    #ifdef WANT_MATH
00195       #include <math.h>
00196       #include <float.h>
00197    #endif
00198    #ifdef WANT_STRING
00199       #include <string.h>
00200    #endif
00201    #ifdef WANT_TIME
00202       #include <time.h>
00203    #endif
00204    #ifdef WANT_FSTREAM
00205       #include <fstream.h>
00206    #endif
00207    #undef DEFAULT_HEADER
00208 #endif
00209 
00210 
00211 #ifdef macintosh                        // MPW C++ on the Mac
00212 #include <stdlib.h>
00213 #ifdef WANT_STREAM
00214 #include <iostream.h>
00215 #include <iomanip.h>
00216 #endif
00217 #ifdef WANT_MATH
00218 #include <float.h>
00219 #include <math.h>
00220 #endif
00221 #ifdef WANT_STRING
00222 #include <string.h>
00223 #endif
00224 #ifdef WANT_TIME
00225 #include <time.h>
00226 #endif
00227 #ifdef WANT_FSTREAM
00228 #include <fstream.h>
00229 #endif
00230 #undef DEFAULT_HEADER
00231 #endif
00232 
00233 #ifdef use_float_h                      // use float.h for precision values
00234 #include <stdlib.h>
00235 #ifdef WANT_STREAM
00236 #include <iostream.h>
00237 #include <iomanip.h>
00238 #endif
00239 #ifdef WANT_MATH
00240 #include <float.h>
00241 #include <math.h>
00242 #endif
00243 #ifdef WANT_STRING
00244 #include <string.h>
00245 #endif
00246 #ifdef WANT_TIME
00247 #include <time.h>
00248 #endif
00249 #ifdef WANT_FSTREAM
00250 #include <fstream.h>
00251 #endif
00252 #undef DEFAULT_HEADER
00253 #endif
00254 
00255 
00256 #ifdef DEFAULT_HEADER                   // for example AT&T
00257 #define ATandT
00258 #include <stdlib.h>
00259 #ifdef WANT_STREAM
00260 #include <iostream.h>
00261 #include <iomanip.h>
00262 #endif
00263 #ifdef WANT_MATH
00264 #include <math.h>
00265 #define SystemV                         // use System V
00266 #include <values.h>
00267 #endif
00268 #ifdef WANT_STRING
00269 #include <string.h>
00270 #endif
00271 #ifdef WANT_TIME
00272 #include <time.h>
00273 #endif
00274 #ifdef WANT_FSTREAM
00275 #include <fstream.h>
00276 #endif
00277 #endif                                  // DEFAULT_HEADER
00278 
00279 #endif                                  // _STANDARD_
00280 
00281 #ifdef use_namespace
00282 namespace RBD_COMMON {
00283 #endif
00284 
00285 
00286 #ifdef USING_FLOAT                      // set precision type to float
00287 typedef float Real;
00288 typedef double long_Real;
00289 #endif
00290 
00291 #ifdef USING_DOUBLE                     // set precision type to double
00292 typedef double Real;
00293 typedef long double long_Real;
00294 #endif
00295 
00296 
00297 #ifdef use_namespace
00298 }
00299 #endif
00300 
00301 
00302 #ifdef use_namespace
00303 namespace RBD_COMMON {}
00304 namespace RBD_LIBRARIES                 // access all my libraries
00305 {
00306    using namespace RBD_COMMON;
00307 }
00308 #endif
00309 
00310 
00311 #endif

newmat11b
Generated Thu Nov 22 00:50:54 2007 by Doxygen 1.5.4