isle-portable/LEGO1/lego1_export.h
VoxelTek 59f4cf9814 terrible horrible no good very bad ""fixes""
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.
2025-08-04 12:55:56 +10:00

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