Added static build support to export macros

This commit is contained in:
Robert Osfield
2007-05-21 07:54:01 +00:00
parent d2ed03f931
commit d2aefbc09a

View File

@@ -15,12 +15,14 @@
#ifndef OSGMANIPULATOR_EXPORT_ #ifndef OSGMANIPULATOR_EXPORT_
#define OSGMANIPULATOR_EXPORT_ 1 #define OSGMANIPULATOR_EXPORT_ 1
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__) #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# ifdef OSGMANIPULATOR_LIBRARY # if defined( OSG_LIBRARY_STATIC )
# define OSGMANIPULATOR_EXPORT
# elif defined( OSGMANIPULATOR_LIBRARY )
# define OSGMANIPULATOR_EXPORT __declspec(dllexport) # define OSGMANIPULATOR_EXPORT __declspec(dllexport)
# else # else
# define OSGMANIPULATOR_EXPORT __declspec(dllimport) # define OSGMANIPULATOR_EXPORT __declspec(dllimport)
# endif /* OSGMANIPULATOR_LIBRARY */ # endif
#else #else
# define OSGMANIPULATOR_EXPORT # define OSGMANIPULATOR_EXPORT
#endif #endif