mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-23 07:54:17 +01:00
GDNative: Fix Linux arm64 warning about ignored sysv_abi
attribute
Fixes #41160.
This commit is contained in:
parent
1c70f86950
commit
d8968ccef9
@ -38,20 +38,22 @@ extern "C" {
|
||||
|
||||
#if defined(_WIN32) || defined(__ANDROID__)
|
||||
#define GDCALLINGCONV
|
||||
#define GDAPI GDCALLINGCONV
|
||||
#elif defined(__APPLE__)
|
||||
#include "TargetConditionals.h"
|
||||
#if TARGET_OS_IPHONE
|
||||
#define GDCALLINGCONV __attribute__((visibility("default")))
|
||||
#define GDAPI GDCALLINGCONV
|
||||
#elif TARGET_OS_MAC
|
||||
#define GDCALLINGCONV __attribute__((sysv_abi))
|
||||
#define GDAPI GDCALLINGCONV
|
||||
#endif
|
||||
#else // !_WIN32 && !__APPLE__
|
||||
#else // Linux/BSD/Web
|
||||
#if defined(__aarch64__)
|
||||
#define GDCALLINGCONV
|
||||
#else
|
||||
#define GDCALLINGCONV __attribute__((sysv_abi))
|
||||
#define GDAPI GDCALLINGCONV
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define GDAPI GDCALLINGCONV
|
||||
|
||||
// This is for libraries *using* the header, NOT PANDEMONIUM EXPOSING STUFF!!
|
||||
#if !defined(GDN_EXPORT)
|
||||
|
Loading…
Reference in New Issue
Block a user