osgEarth 2.1.1
|
00001 /* -*-c++-*- */ 00002 /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph 00003 * Copyright 2008-2010 Pelican Mapping 00004 * http://osgearth.org 00005 * 00006 * osgEarth is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses/> 00018 */ 00019 00020 #ifndef OSGEARTHFEATURES_COMMON_H 00021 #define OSGEARTHFEATURES_COMMON_H 1 00022 00023 #include <osgEarth/Common> 00024 00025 // define USE_DEPRECATED_API is used to include in API which is being fazed out 00026 // if you can compile your apps with this turned off you are 00027 // well placed for compatibility with future versions. 00028 #define USE_DEPRECATED_API 00029 00030 #if defined(_MSC_VER) 00031 #pragma warning( disable : 4244 ) 00032 #pragma warning( disable : 4251 ) 00033 #pragma warning( disable : 4267 ) 00034 #pragma warning( disable : 4275 ) 00035 #pragma warning( disable : 4290 ) 00036 #pragma warning( disable : 4786 ) 00037 #pragma warning( disable : 4305 ) 00038 #pragma warning( disable : 4996 ) 00039 #endif 00040 00041 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__) 00042 # if defined( OSGEARTHFEATURES_LIBRARY_STATIC ) 00043 # define OSGEARTHFEATURES_EXPORT 00044 # elif defined( OSGEARTHFEATURES_LIBRARY ) 00045 # define OSGEARTHFEATURES_EXPORT __declspec(dllexport) 00046 # else 00047 # define OSGEARTHFEATURES_EXPORT __declspec(dllimport) 00048 # endif 00049 #else 00050 # define OSGEARTHFEATURES_EXPORT 00051 #endif 00052 00053 // set up define for whether member templates are supported by VisualStudio compilers. 00054 #ifdef _MSC_VER 00055 # if (_MSC_VER >= 1300) 00056 # define __STL_MEMBER_TEMPLATES 00057 # endif 00058 #endif 00059 00060 /* Define NULL pointer value */ 00061 00062 #ifndef NULL 00063 #ifdef __cplusplus 00064 #define NULL 0 00065 #else 00066 #define NULL ((void *)0) 00067 #endif 00068 #endif 00069 00070 #ifndef OSG_MIN_VERSION_REQUIRED 00071 #define OSG_MIN_VERSION_REQUIRED(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION>MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION>MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION>=PATCH)))) 00072 #endif 00073 00074 #ifndef OSG_VERSION_LESS_THAN 00075 #define OSG_VERSION_LESS_THAN(MAJOR, MINOR, PATCH) ((OPENSCENEGRAPH_MAJOR_VERSION<MAJOR) || (OPENSCENEGRAPH_MAJOR_VERSION==MAJOR && (OPENSCENEGRAPH_MINOR_VERSION<MINOR || (OPENSCENEGRAPH_MINOR_VERSION==MINOR && OPENSCENEGRAPH_PATCH_VERSION<PATCH)))) 00076 #endif 00077 00082 namespace osgEarth { namespace Features { 00083 00084 } } 00085 00086 #endif // OSGEARTHFEATURES_COMMON_H