Export.h

00001 /***************************************************************************
00002  *   Copyright (c) 2008   Art Tevs                                         *
00003  *                                                                         *
00004  *   This library is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU Lesser General Public License as        *
00006  *   published by the Free Software Foundation; either version 3 of        *
00007  *   the License, or (at your option) any later version.                   *
00008  *                                                                         *
00009  *   This library is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU Lesse General Public License for more details.                    *
00013  *                                                                         *
00014  *   The full license is in LICENSE file included with this distribution.  *
00015  ***************************************************************************/
00016 
00017 #ifndef _C_OSGPPU_EXPORT_H_
00018 #define _C_OSGPPU_EXPORT_H_
00019 
00020 #include <osgPPU/Config.h>
00021 
00022 #if defined(_MSC_VER)
00023  #pragma warning( disable : 4244 )
00024  #pragma warning( disable : 4251 )
00025  #pragma warning( disable : 4267 )
00026  #pragma warning( disable : 4275 )
00027  #pragma warning( disable : 4290 )
00028  #pragma warning( disable : 4786 )
00029  #pragma warning( disable : 4305 )
00030  #pragma warning( disable : 4996 )
00031 
00032 #endif
00033 
00034 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)  || defined( __MWERKS__)
00035     #  if defined( OSGPPU_LIBRARY_STATIC )
00036     #    define OSGPPU_EXPORT
00037     #  elif defined( OSGPPU_LIBRARY )
00038     #    define OSGPPU_EXPORT   __declspec(dllexport)
00039     #  else
00040     #    define OSGPPU_EXPORT   __declspec(dllimport)
00041     #  endif
00042 #else
00043     #  define OSGPPU_EXPORT
00044 #endif
00045 
00046 // set up define for whether member templates are supported by VisualStudio compilers.
00047 #ifdef _MSC_VER
00048 # if (_MSC_VER >= 1300)
00049 #  define __STL_MEMBER_TEMPLATES
00050 # endif
00051 #endif //_MSC_VER
00052 
00053 /* Define NULL pointer value */
00054 
00055 #ifndef NULL
00056     #ifdef  __cplusplus
00057         #define NULL    0
00058     #else
00059         #define NULL    ((void *)0)
00060     #endif
00061 #endif //NULL
00062 
00063 #endif //_C_OSGPPU_EXPORT_H_

Back to Homepage of osgPPU

Copyright (C) 2008 by Art Tevs (LGPL)