- Your Widget Set For OpenGL
ufo_config_msvc.hpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef UFO_CONFIG_MSVC_H
00029 #define UFO_CONFIG_MSVC_H
00030
00031
00032 #pragma warning(disable: 4231) // nonstandard extension used : 'extern' before template explicit instantiation
00033 #pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
00034 #pragma warning(disable: 4251) // class 'A' needs to have dll interface for to be used by clients of class 'B'.
00035 #pragma warning(disable: 4275) // non - DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
00036
00037 #pragma warning(disable: 4355) // 'this' : used in base member initializer list
00038
00039 #pragma warning(disable: 4786) // truncating debug info after 255 characters
00040 #pragma warning(disable: 4800) // 'type' : forcing value to bool 'true' or 'false' (performance warning)
00041 #pragma warning(disable: 4291) // no matching operator delete found; memory will not be freed if initialization throws an exception
00042
00043
00044
00045
00046
00047
00048
00049
00050 #define HAVE_SSTREAM 1
00051
00052
00053
00054
00055
00056
00057
00058
00059 #define UFO_DATADIR "./data"
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 #define NOMINMAX
00070
00071
00072 #include <algorithm>
00073 #if defined(_MSC_VER) && (_MSC_VER < 1300) && !defined(_STLPORT_VERSION) && \
00074 !defined(__MWERKS__) && !defined (__ICL) && !defined (__COMO__)
00075
00076 namespace std {
00077
00078 template <typename Type>
00079 inline const Type& min(const Type & a, const Type & b) {
00080 return b < a ? b : a;
00081 }
00082 template <typename Type>
00083 inline const Type& max(const Type & a, const Type & b) {
00084 return a < b ? b : a;
00085 }
00086 template <typename Type>
00087 inline Type abs(const Type & a) {
00088 return a > 0 ? a : -a;
00089 }
00090
00091 using ::size_t;
00092 }
00093
00094 #endif
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104 #define inline __inline
00105
00106
00107
00108
00109 #define SIZEOF_CHAR 1
00110
00111
00112 #define SIZEOF_SHORT 2
00113
00114
00115 #define SIZEOF_INT 4
00116
00117
00118 #define SIZEOF_LONG 4
00119
00120
00121 #endif // UFO_CONFIG_MSVC_H
The libUFO Project - written by Johannes Schmidt