Merge pull request #92721 from aaronfranke/3.x-rv-warn-sysv-abi

[3.x] GDNative: Fix Linux riscv warning about ignored `sysv_abi`
This commit is contained in:
lawnjelly 2024-06-03 20:53:19 +01:00 committed by GitHub
commit b203829361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ extern "C" {
#endif #endif
#else // Linux/BSD/Web #else // Linux/BSD/Web
#if defined(__aarch64__) || defined(__arm__) #if defined(__aarch64__) || defined(__arm__) || defined(__riscv)
#define GDCALLINGCONV #define GDCALLINGCONV
#else #else
#define GDCALLINGCONV __attribute__((sysv_abi)) #define GDCALLINGCONV __attribute__((sysv_abi))