From 642742a1c85c3f7cfe6903469ee4bc5eaa9a0087 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 26 Oct 2023 21:20:44 -0500 Subject: [PATCH] 32 Bit Builds Working. --- CMakeLists.txt | 3 +++ build-all.sh | 10 +++++----- cmake/{i386-linux-gnu.cmake => i686-linux-gnu.cmake} | 6 +++--- src/main.c | 8 ++++---- src/singe.c | 3 +++ 5 files changed, 18 insertions(+), 12 deletions(-) rename cmake/{i386-linux-gnu.cmake => i686-linux-gnu.cmake} (88%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27b8c1f55..c7a33e558 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -244,8 +244,11 @@ add_executable(${CMAKE_PROJECT_NAME} if(WIN32) + # Note: _WIN32_WINNT=0x0600 sets the minimum compatible version of + # Windows to Vista. The function inet_pton() does not exist before then. set(DEFINE_LIST -Dmain=SDL_main + -D_WIN32_WINNT=0x0600 ) else() set(DEFINE_LIST) diff --git a/build-all.sh b/build-all.sh index 34c7d9304..0d2d15399 100755 --- a/build-all.sh +++ b/build-all.sh @@ -40,7 +40,7 @@ function buildAll() { linux) case "${ARCH}" in x86) - TRIPLE="i386-linux-gnu" + TRIPLE="i686-linux-gnu" ;; x86_64) TRIPLE="x86_64-linux-gnu" @@ -78,7 +78,7 @@ function buildAll() { export LD_LIBRARY_PATH=${G_TARGET} export PKG_CONFIG_LIBDIR=${G_TARGET}/lib/pkgconfig -:<