Merge pull request #771 from Faless/fix/4.x_mingw_export

pull/778/head
Rémi Verschelde 2022-06-27 14:10:30 +02:00 committed by GitHub
commit 7adc5360d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -34,13 +34,15 @@
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#ifdef __GNUC__ #if !defined(GDN_EXPORT)
#define GDN_EXPORT __attribute__((visibility("default"))) #if defined(_WIN32)
#elif defined(_WIN32)
#define GDN_EXPORT __declspec(dllexport) #define GDN_EXPORT __declspec(dllexport)
#elif defined(__GNUC__)
#define GDN_EXPORT __attribute__((visibility("default")))
#else #else
#define GDN_EXPORT #define GDN_EXPORT
#endif #endif
#endif
// Turn argument to string constant: // Turn argument to string constant:
// https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing // https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html#Stringizing