From 82a85b77c3cdd99bf9cb51dc198c4362d5ac30f1 Mon Sep 17 00:00:00 2001 From: Mikko Lehtonen Date: Tue, 12 May 2009 06:42:50 +0300 Subject: [PATCH] Allow static building on win32 --- include/defines.h | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/include/defines.h b/include/defines.h index f276f88..a1e250d 100644 --- a/include/defines.h +++ b/include/defines.h @@ -1,4 +1,4 @@ -/* +/* The MIT License Copyright 2006 Sony Computer Entertainment Inc. @@ -19,19 +19,26 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - */ -#ifndef __DEFINES_H__ -#define __DEFINES_H__ - -#ifdef WIN32 - #ifdef REFINERY - #define REF_EXPORT __declspec(dllexport) - #else - #define REF_EXPORT __declspec(dllimport) - #endif -#else - #define REF_EXPORT -#endif - -#endif //__DEFINES_H__ +THE SOFTWARE. + */ +#ifndef __DEFINES_H__ +#define __DEFINES_H__ + +#ifdef WIN32 + + #ifdef COLLADAREFINERY_STATIC + #define REF_EXPORT + #else + + #ifdef REFINERY + #define REF_EXPORT __declspec(dllexport) + #else + #define REF_EXPORT __declspec(dllimport) + #endif + + #endif +#else + #define REF_EXPORT +#endif + +#endif //__DEFINES_H__