.dll export code now checks do Microsoft compiler rather than Windows. This should make G++ work properly on Windows.
This commit is contained in:
parent
e92afa23e2
commit
8ac9e1307f
@ -26,13 +26,15 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_TypeDef_H__
|
#ifndef __PolyVox_TypeDef_H__
|
||||||
#define __PolyVox_TypeDef_H__
|
#define __PolyVox_TypeDef_H__
|
||||||
|
|
||||||
#ifdef WIN32 //Should be is Visual studio (to allow MinGW)
|
#ifdef _MSC_VER
|
||||||
|
//We are using a Microsoft compiler.
|
||||||
#ifdef POLYVOXCORE_EXPORT
|
#ifdef POLYVOXCORE_EXPORT
|
||||||
#define POLYVOXCORE_API __declspec(dllexport)
|
#define POLYVOXCORE_API __declspec(dllexport)
|
||||||
#else
|
#else
|
||||||
#define POLYVOXCORE_API __declspec(dllimport)
|
#define POLYVOXCORE_API __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
//Assume a GNU compiler.
|
||||||
#define POLYVOXCORE_API __attribute__ ((visibility("default")))
|
#define POLYVOXCORE_API __attribute__ ((visibility("default")))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user