summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-03 15:09:00 +0200
committerGitHub <noreply@github.com>2018-10-03 15:09:00 +0200
commitf8484bb77d6ddf1f5078d804a8abff3d106d6cab (patch)
tree6437c83af9590d09ac60eead1247d53890ed4565 /modules/gdnative
parentc1cee80829f10d32cc23067291321b049af7082d (diff)
parent60688c3fe71f322fbf30938da47e717f9c3a0fb4 (diff)
Merge pull request #22672 from akien-mga/fix-warnings
Fix various warnings reported by CI in #22620
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/include/gdnative/gdnative.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h
index 616c305f25..796ced84f4 100644
--- a/modules/gdnative/include/gdnative/gdnative.h
+++ b/modules/gdnative/include/gdnative/gdnative.h
@@ -35,7 +35,7 @@
extern "C" {
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__ANDROID__)
#define GDCALLINGCONV
#define GDAPI GDCALLINGCONV
#elif defined(__APPLE__)
@@ -47,7 +47,7 @@ extern "C" {
#define GDCALLINGCONV __attribute__((sysv_abi))
#define GDAPI GDCALLINGCONV
#endif
-#else
+#else // !_WIN32 && !__APPLE__
#define GDCALLINGCONV __attribute__((sysv_abi))
#define GDAPI GDCALLINGCONV
#endif