Add support for MinGW

This commit is contained in:
Sewbacca
2023-11-26 15:00:34 +01:00
parent 99e7022d2d
commit 11d4bdd1a3
3 changed files with 26 additions and 15 deletions
+3 -1
View File
@@ -104,7 +104,7 @@
#endif
// DLL-stuff.
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW32__)
# define LOVE_EXPORT __declspec(dllexport)
#elif defined(__GNUC__) || defined(__clang__)
# define LOVE_EXPORT __attribute__((visibility("default")))
@@ -116,8 +116,10 @@
#ifndef LOVE_WINDOWS_UWP
# define LOVE_LEGENDARY_CONSOLE_IO_HACK
#endif // LOVE_WINDOWS_UWP
#ifndef __MINGW32__
# define NOMINMAX
#endif
#endif
#if defined(LOVE_MACOSX) || defined(LOVE_IOS)
# define LOVE_LEGENDARY_APP_ARGV_HACK