From 7da17bca022f3c31329a85551e3ee0614b566946 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 17 Feb 2024 20:55:27 +0100 Subject: [PATCH] Added more defines for platform specific configs. --- modules/database_sqlite/sqlite/sqlite3.c | 2 ++ modules/gdnative/include/gdn/gdnative.h | 2 +- thirdparty/enet/enet/pandemonium.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/database_sqlite/sqlite/sqlite3.c b/modules/database_sqlite/sqlite/sqlite3.c index 86ff67c1d..9bd414674 100644 --- a/modules/database_sqlite/sqlite/sqlite3.c +++ b/modules/database_sqlite/sqlite/sqlite3.c @@ -161,7 +161,9 @@ #else /* This is not VxWorks. */ #define OS_VXWORKS 0 +#ifndef SQLITE_NO_FCHOWN #define HAVE_FCHOWN 1 +#endif #define HAVE_READLINK 1 #define HAVE_LSTAT 1 #endif /* defined(_WRS_KERNEL) */ diff --git a/modules/gdnative/include/gdn/gdnative.h b/modules/gdnative/include/gdn/gdnative.h index 634ec4282..1ccd90708 100644 --- a/modules/gdnative/include/gdn/gdnative.h +++ b/modules/gdnative/include/gdn/gdnative.h @@ -36,7 +36,7 @@ extern "C" { #endif -#if defined(_WIN32) || defined(__ANDROID__) +#if defined(_WIN32) || defined(__ANDROID__) || defined(GDNATIVE_LINUX_BSD_WEB) #define GDCALLINGCONV #elif defined(__APPLE__) #include "TargetConditionals.h" diff --git a/thirdparty/enet/enet/pandemonium.h b/thirdparty/enet/enet/pandemonium.h index 56d2101c2..a4e852122 100644 --- a/thirdparty/enet/enet/pandemonium.h +++ b/thirdparty/enet/enet/pandemonium.h @@ -41,7 +41,7 @@ #include #include #endif -#ifdef UNIX_ENABLED +#if defined(UNIX_ENABLED) || defined(ENET_UNIX_ENABLED) #include #endif