diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-29 10:48:41 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-29 19:04:26 +0100 |
commit | 9c3cc6a8a51c4c4f01be7149d8522a713df2149a (patch) | |
tree | 434e403a7db672660bf192280d5b7a91cecf5039 /src/configure.cc | |
parent | 15e2bd35a8da320f074942e814885f3d6eaf0706 (diff) |
Enable mingw/gcc buildmingw
Diffstat (limited to 'src/configure.cc')
-rw-r--r-- | src/configure.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configure.cc b/src/configure.cc index d2c1053..da5dbfd 100644 --- a/src/configure.cc +++ b/src/configure.cc @@ -27,7 +27,7 @@ const std::filesystem::path configHeaderFile("config.h"); std::map<std::string, std::string> external_includedir; std::map<std::string, std::string> external_libdir; -#if !defined(_WIN32) +#if !defined(_WIN32) || defined(__MINGW32__) const ctor::configuration& __attribute__((weak)) ctor::get_configuration() #else const ctor::configuration& default_get_configuration() @@ -49,7 +49,7 @@ const ctor::configuration& default_get_configuration() } return cfg; } -#if defined(_WIN32) +#if defined(_WIN32) && !defined(__MINGW32__) // Hack to make ctor::get_configuration "weak" linked // See: // https://stackoverflow.com/questions/2290587/gcc-style-weak-linking-in-visual-studio |