Merge pull request #62173 from Faless/gdnative/3.x_mingw_dllexport_plus
This commit is contained in:
commit
f0cfe3a83b
1 changed files with 5 additions and 3 deletions
|
@ -53,13 +53,15 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This is for libraries *using* the header, NOT GODOT EXPOSING STUFF!!
|
// This is for libraries *using* the header, NOT GODOT EXPOSING STUFF!!
|
||||||
#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
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
Loading…
Reference in a new issue