.dll export code now checks do Microsoft compiler rather than Windows. This should make G++ work properly on Windows.

This commit is contained in:
David Williams 2010-03-07 23:04:17 +00:00
parent e92afa23e2
commit 8ac9e1307f

View File

@ -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