- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo_config_msvc.hpp

00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : include/ufo/config/ufo_config_msvc.h 00008 begin : Sun Jan 27 2002 00009 $Id: ufo_config_msvc.hpp,v 1.12 2005/09/30 12:42:08 schmidtjf Exp $ 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * This library is free software; you can redistribute it and/or * 00014 * modify it under the terms of the GNU Lesser General Public * 00015 * License as published by the Free Software Foundation; either * 00016 * version 2.1 of the License, or (at your option) any later version. * 00017 * * 00018 * This library is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00021 * Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 00026 ***************************************************************************/ 00027 00028 #ifndef UFO_CONFIG_MSVC_H 00029 #define UFO_CONFIG_MSVC_H 00030 00031 // disable win32 warnings on exporting STL objects 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 /* Define if you want to enable DEBUG mode. */ 00044 /* #undef DEBUG */ 00045 00046 /* Define if you have the <dlfcn.h> header file. */ 00047 /* #undef HAVE_DLFCN_H */ 00048 00049 /* Define if you have the <sstream> header file. */ 00050 #define HAVE_SSTREAM 1 00051 00052 /* Define if you have the <stdint.h> header file. */ 00053 /* #undef HAVE_STDINT_H */ 00054 00055 /* Name of package */ 00056 /* #undef PACKAGE */ 00057 00058 /* insert the path to the theme and data dir of libUFO */ 00059 #define UFO_DATADIR "./data" 00060 00061 /* Define if you want to use the STL allocator of libUFO instead of libgc. */ 00062 /*#undef USE_UFO_STL_ALLOC */ 00063 00064 // STLport specific 00065 //#define USE_STLPORT_STL_ALLOC 1 00066 00067 // msvc specific 00068 00069 #define NOMINMAX 00070 00071 // Fixes STL problems with msvc <= 6 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 } // namespace std 00093 00094 #endif 00095 00096 /* Version number of package */ 00097 /* #undef VERSION */ 00098 00099 /* Define to empty if `const' does not conform to ANSI C. */ 00100 /* #undef const */ 00101 00102 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 00103 if it is not supported. */ 00104 #define inline __inline 00105 00106 // FIXME this will work only on intel 32 bit systems 00107 // lazily copied from gnu config 00108 /* The size of a `char' */ 00109 #define SIZEOF_CHAR 1 00110 00111 /* The size of a `short' */ 00112 #define SIZEOF_SHORT 2 00113 00114 /* The size of a `int' */ 00115 #define SIZEOF_INT 4 00116 00117 /* The size of a `long' */ 00118 #define SIZEOF_LONG 4 00119 00120 00121 #endif // UFO_CONFIG_MSVC_H

The libUFO Project - written by Johannes Schmidt