00001 //----------------------------------------------------------------------------------- 00002 // 00003 // Pro-Vocation Light Engine (PVLE) 00004 // Copyright (C) 2007-2009 Sukender, KinoX & Buzib 00005 // For more information, contact us : sukender@free.fr 00006 // 00007 // This program is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // For any use that is not compatible with the terms of the GNU 00013 // General Public License, please contact the authors for alternative 00014 // licensing options. 00015 // 00016 // This program is distributed in the hope that it will be useful, 00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 // GNU General Public License for more details. 00020 // 00021 // You should have received a copy of the GNU General Public License along 00022 // with this program; if not, write to the Free Software Foundation, Inc., 00023 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00024 // 00025 //----------------------------------------------------------------------------------- 00026 00029 00030 #ifndef PVLE_EXPORT_H 00031 #define PVLE_EXPORT_H 00032 00033 // Usage of these macros: 00034 // Inside PVLE, define PVLE_LIB_STATIC or PVLE_LIB_DYNAMIC, depending on what you compile (lib or dll/so). 00035 // Outside PVLE, debfine PVLE_LINK_STATIC or nothing, depending on what you link against (lib or dll/so). 00036 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__) 00037 #if defined( PVLE_LIB_STATIC ) || defined( PVLE_LINK_STATIC ) 00038 # define PVLE_EXPORT 00039 # define PVLE_EXPORT_TEMPLATE 00040 #elif defined( PVLE_LIB_DYNAMIC ) 00041 # define PVLE_EXPORT __declspec(dllexport) 00042 # define PVLE_EXPORT_TEMPLATE 00043 #else 00044 # define PVLE_EXPORT __declspec(dllimport) 00045 //# define PVLE_EXPORT 00046 # define PVLE_EXPORT_TEMPLATE extern 00047 #endif 00048 #else 00049 #define PVLE_EXPORT 00050 #define PVLE_EXPORT_TEMPLATE 00051 #endif 00052 00053 00054 00055 00056 // OSG: 00057 //#if defined(_MSC_VER) 00058 // #pragma warning( disable : 4244 ) 00059 // #pragma warning( disable : 4251 ) 00060 // #pragma warning( disable : 4267 ) 00061 // #pragma warning( disable : 4275 ) 00062 // #pragma warning( disable : 4290 ) 00063 // #pragma warning( disable : 4786 ) 00064 // #pragma warning( disable : 4305 ) 00065 // #pragma warning( disable : 4996 ) 00066 //#endif 00067 // 00068 //#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__) 00069 // # if defined( OSG_LIBRARY_STATIC ) 00070 // # define OSG_EXPORT 00071 // # elif defined( OSG_LIBRARY ) 00072 // # define OSG_EXPORT __declspec(dllexport) 00073 // # else 00074 // # define OSG_EXPORT __declspec(dllimport) 00075 // # endif 00076 //#else 00077 // # define OSG_EXPORT 00078 //#endif 00079 00080 // OpenThreads: 00081 //#ifndef WIN32 00082 // #define OPENTHREAD_EXPORT_DIRECTIVE 00083 //#else 00084 // #if defined( OT_LIBRARY_STATIC ) 00085 // #define OPENTHREAD_EXPORT_DIRECTIVE 00086 // #elif defined( OPENTHREADS_EXPORTS ) 00087 // #define OPENTHREAD_EXPORT_DIRECTIVE __declspec(dllexport) 00088 // #else 00089 // #define OPENTHREAD_EXPORT_DIRECTIVE __declspec(dllimport) 00090 // #endif 00091 //#endif 00092 00093 // Fond on the web: 00094 //#ifdef _USRDLL 00095 // #define MY_API_EXPORT __declspec(dllexport) 00096 // #define MY_API_IMPORT __declspec(dllimport) 00097 // #ifdef MYDLL_EXPORTS 00098 // #define MY_API MY_API_EXPORT 00099 // #else 00100 // #define MY_API MY_API_IMPORT 00101 // #endif 00102 //#else 00103 // #define MY_API 00104 // #define MY_API_EXPORT 00105 // #define MY_API_IMPORT 00106 //#endif 00107 00108 00109 #endif // PVLE_EXPORT_H