Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow static building on win32
  • Loading branch information
scoopr committed May 12, 2009
1 parent a07d989 commit 82a85b7
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions include/defines.h
@@ -1,4 +1,4 @@
/*
/*
The MIT License
Copyright 2006 Sony Computer Entertainment Inc.
Expand All @@ -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.