diff --git a/modules/gdnative/include/gdn/gdnative.h b/modules/gdnative/include/gdn/gdnative.h index f28112065..0162a817c 100644 --- a/modules/gdnative/include/gdn/gdnative.h +++ b/modules/gdnative/include/gdn/gdnative.h @@ -46,7 +46,7 @@ extern "C" { #define GDCALLINGCONV __attribute__((sysv_abi)) #endif #else // Linux/BSD/Web -#if defined(__aarch64__) || defined(__arm__) +#if defined(__aarch64__) || defined(__arm__) || defined(__riscv) #define GDCALLINGCONV #else #define GDCALLINGCONV __attribute__((sysv_abi))