From ed1ec236c1f7fa0e6a3a9ec32ef96646b7318a73 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 16 Oct 2024 07:39:30 -0700 Subject: [PATCH] Removed fdatasync and gethostname definitions from platforms that don't have them As verified by CMake builds in CI --- include/build_config/SDL_build_config_android.h | 2 -- include/build_config/SDL_build_config_emscripten.h | 2 -- include/build_config/SDL_build_config_ios.h | 2 -- include/build_config/SDL_build_config_macos.h | 2 -- include/build_config/SDL_build_config_windows.h | 1 - include/build_config/SDL_build_config_wingdk.h | 1 - 6 files changed, 10 deletions(-) diff --git a/include/build_config/SDL_build_config_android.h b/include/build_config/SDL_build_config_android.h index 34f26270e9012..db5e3cebd7299 100644 --- a/include/build_config/SDL_build_config_android.h +++ b/include/build_config/SDL_build_config_android.h @@ -57,10 +57,8 @@ #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 #define HAVE_REALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_FREE 1 #define HAVE_GETENV 1 -#define HAVE_GETHOSTNAME 1 #define HAVE_PUTENV 1 #define HAVE_SETENV 1 #define HAVE_UNSETENV 1 diff --git a/include/build_config/SDL_build_config_emscripten.h b/include/build_config/SDL_build_config_emscripten.h index 9b3f853d1474a..32596b301f0af 100644 --- a/include/build_config/SDL_build_config_emscripten.h +++ b/include/build_config/SDL_build_config_emscripten.h @@ -60,10 +60,8 @@ #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 #define HAVE_REALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_FREE 1 #define HAVE_GETENV 1 -#define HAVE_GETHOSTNAME 1 #define HAVE_SETENV 1 #define HAVE_PUTENV 1 #define HAVE_UNSETENV 1 diff --git a/include/build_config/SDL_build_config_ios.h b/include/build_config/SDL_build_config_ios.h index b7e2843a1697f..4dc3b674d498f 100644 --- a/include/build_config/SDL_build_config_ios.h +++ b/include/build_config/SDL_build_config_ios.h @@ -49,10 +49,8 @@ #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 #define HAVE_REALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_FREE 1 #define HAVE_GETENV 1 -#define HAVE_GETHOSTNAME 1 #define HAVE_PUTENV 1 #define HAVE_SETENV 1 #define HAVE_UNSETENV 1 diff --git a/include/build_config/SDL_build_config_macos.h b/include/build_config/SDL_build_config_macos.h index c4419541dc6e9..cd041b9e9eebf 100644 --- a/include/build_config/SDL_build_config_macos.h +++ b/include/build_config/SDL_build_config_macos.h @@ -54,10 +54,8 @@ #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 #define HAVE_REALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_FREE 1 #define HAVE_GETENV 1 -#define HAVE_GETHOSTNAME 1 #define HAVE_SETENV 1 #define HAVE_PUTENV 1 #define HAVE_UNSETENV 1 diff --git a/include/build_config/SDL_build_config_windows.h b/include/build_config/SDL_build_config_windows.h index b3fce6327f735..24e21f88f60cd 100644 --- a/include/build_config/SDL_build_config_windows.h +++ b/include/build_config/SDL_build_config_windows.h @@ -135,7 +135,6 @@ typedef unsigned int uintptr_t; #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 #define HAVE_REALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_FREE 1 #define HAVE_ABS 1 #define HAVE_MEMSET 1 diff --git a/include/build_config/SDL_build_config_wingdk.h b/include/build_config/SDL_build_config_wingdk.h index a9d414044de2a..5b7ebf1ddec75 100644 --- a/include/build_config/SDL_build_config_wingdk.h +++ b/include/build_config/SDL_build_config_wingdk.h @@ -75,7 +75,6 @@ #define HAVE_LIBC 1 #define HAVE_MALLOC 1 #define HAVE_CALLOC 1 -#define HAVE_FDATASYNC 1 #define HAVE_REALLOC 1 #define HAVE_FREE 1 #define HAVE_ABS 1