mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 10:41:15 +00:00
The NXDK seems to be very very broken. Currently, these changes get things all the way to 100% compilation, but fail on the linking step due to `miniaudio`. These changes really need to be actually fixed in future to not be as bad as they are, but I haven't got much of a clue how best to do that.
24 lines
394 B
C
24 lines
394 B
C
#ifndef LEGO1_EXPORT_H
|
|
#define LEGO1_EXPORT_H
|
|
|
|
#undef LEGO1_DLL
|
|
#define LEGO1_STATIC
|
|
|
|
#ifdef LEGO1_STATIC
|
|
#define LEGO1_EXPORT
|
|
#elif defined(LEGO1_DLL)
|
|
#ifdef _WIN32
|
|
#define LEGO1_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define LEGO1_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
#else
|
|
#ifdef _WIN32
|
|
#define LEGO1_EXPORT __declspec(dllimport)
|
|
#else
|
|
#define LEGO1_EXPORT
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|