Fix GDNative build warning on Android [-Wignored-attributes]
Fixes the following kind of warning spam: ``` modules/gdnative/include/gdnative/color.h:61:6: warning: calling convention 'sysv_abi' ignored for this target [-Wignored-attributes] void GDAPI godot_color_new_rgba(godot_color *r_dest, const godot_real p_r, const godot_real p_g, const godot_real p_b, const godot_real p_a); ^ modules/gdnative/include/gdnative/gdnative.h:52:15: note: expanded from macro 'GDAPI' ^ modules/gdnative/include/gdnative/gdnative.h:51:38: note: expanded from macro 'GDCALLINGCONV' ^ ```
This commit is contained in:
parent
6ab78d9ffb
commit
60688c3fe7
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__ANDROID__)
|
||||||
#define GDCALLINGCONV
|
#define GDCALLINGCONV
|
||||||
#define GDAPI GDCALLINGCONV
|
#define GDAPI GDCALLINGCONV
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
@ -47,7 +47,7 @@ extern "C" {
|
||||||
#define GDCALLINGCONV __attribute__((sysv_abi))
|
#define GDCALLINGCONV __attribute__((sysv_abi))
|
||||||
#define GDAPI GDCALLINGCONV
|
#define GDAPI GDCALLINGCONV
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else // !_WIN32 && !__APPLE__
|
||||||
#define GDCALLINGCONV __attribute__((sysv_abi))
|
#define GDCALLINGCONV __attribute__((sysv_abi))
|
||||||
#define GDAPI GDCALLINGCONV
|
#define GDAPI GDCALLINGCONV
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue