Browse files

Allow static building on win32

  • Loading branch information...
1 parent a07d989 commit 82a85b77c3cdd99bf9cb51dc198c4362d5ac30f1 @scoopr committed May 12, 2009
Showing with 24 additions and 17 deletions.
  1. +24 −17 include/defines.h
View
41 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__

0 comments on commit 82a85b7

Please sign in to comment.