OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Export.h
Go to the documentation of this file.
1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version. The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * OpenSceneGraph Public License for more details.
12 */
13 
14 #ifndef OSG_EXPORT_
15 #define OSG_EXPORT_ 1
16 
17 #include<osg/Config>
18 // define USE_DEPRECATED_API is used to include in API which is being fazed out
19 // if you can compile your apps with this turned off you are
20 // well placed for compatibility with future versions.
21 #define USE_DEPRECATED_API
22 
23 // disable VisualStudio warnings
24 #if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS)
25  #pragma warning( disable : 4244 )
26  #pragma warning( disable : 4251 )
27  #pragma warning( disable : 4275 )
28  #pragma warning( disable : 4512 )
29  #pragma warning( disable : 4267 )
30  #pragma warning( disable : 4702 )
31  #pragma warning( disable : 4511 )
32 #endif
33 
34 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
35  # if defined( OSG_LIBRARY_STATIC )
36  # define OSG_EXPORT
37  # elif defined( OSG_LIBRARY )
38  # define OSG_EXPORT __declspec(dllexport)
39  # else
40  # define OSG_EXPORT __declspec(dllimport)
41  # endif
42 #else
43  # define OSG_EXPORT
44 #endif
45 
46 // set up define for whether member templates are supported by VisualStudio compilers.
47 #ifdef _MSC_VER
48 # if (_MSC_VER >= 1300)
49 # define __STL_MEMBER_TEMPLATES
50 # endif
51 #endif
52 
53 /* Define NULL pointer value */
54 
55 #ifndef NULL
56  #ifdef __cplusplus
57  #define NULL 0
58  #else
59  #define NULL ((void *)0)
60  #endif
61 #endif
62 
71 #endif
72