Merge pull request #85916 from akien-mga/gdnative-fix-linux-arm64-sysv_abi-attribute-warning

[3.x] GDNative: Fix Linux arm64 warning about ignored `sysv_abi` attribute
This commit is contained in:
Rémi Verschelde 2023-12-11 20:02:06 +01:00
commit 51732690e6
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -37,20 +37,24 @@ 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 GODOT EXPOSING STUFF!!
#if !defined(GDN_EXPORT)