.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__
|
||||
#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
|
||||
#define POLYVOXCORE_API __declspec(dllexport)
|
||||
#else
|
||||
#define POLYVOXCORE_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
//Assume a GNU compiler.
|
||||
#define POLYVOXCORE_API __attribute__ ((visibility("default")))
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user