openModeller
Version 1.4.0
|
00001 00028 #ifndef _DEFSHH_ 00029 #define _DEFSHH_ 00030 00031 //preprocessor trick to convert anything to a quoted string 00032 //e.g. myString.append(WRITESTRING(OM_MAJOR_VERSION)) 00033 #define WRITESTRING(x) #x 00034 00035 // Math types. 00036 // 00037 // Must be 'float' or 'double': 00038 typedef double Coord; 00039 typedef double Scalar; 00040 00049 typedef void (*ModelCreationCallback)( float progress, void *extra_param ); 00050 00058 typedef void (*ModelProjectionCallback)( float progress, void *extra_param ); 00059 00064 typedef bool (*AbortionCallback)( void *extra_param ); 00065 00066 00067 // Windows only defs 00068 // 00069 #ifdef WIN32 00070 00071 // Strangely enough, cygwin/mingw windows libs have strcasecmp() function 00072 // while native VC++7 lib doesn't. Go figure... 00073 # ifdef MSVC 00074 # define strcasecmp _stricmp 00075 # endif 00076 00077 // disable warnings about lack of DLL export in inner class members 00078 #ifdef MSVC 00079 #pragma warning( disable : 4251) 00080 #pragma warning( disable : 4275) 00081 // disable warning on deprecation of standard C functions and others 00082 #pragma warning( disable : 4996) 00083 #endif //MSVC 00084 00085 00086 #endif //WIN32 00087 00088 #endif //_DEFSHH_ 00089 00090 00091 00092