root/OpenSceneGraph/trunk/include/osg/Export @ 13041

Revision 13041, 2.1 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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
63/**
64
65\namespace osg
66
67The core osg library provides the basic scene graph classes such as Nodes,
68State and Drawables, and maths and general helper classes.
69*/
70
71#endif
72
Note: See TracBrowser for help on using the browser.