From a703b09cc17c59cb32f723e50f5ed459af994937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Wed, 27 Aug 2025 00:35:39 -0300 Subject: [PATCH] Fix macOS build. --- premake4.lua | 1 + premake5.lua | 1 + src/thirdparty/libpng/pngpriv.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/premake4.lua b/premake4.lua index 132184d1d..aa2f2b977 100644 --- a/premake4.lua +++ b/premake4.lua @@ -1105,6 +1105,7 @@ solution "eepp" project "zlib-static" kind "StaticLib" language "C" + defines { "_LARGEFILE64_SOURCE" } set_targetdir("libs/" .. os.get_real() .. "/thirdparty/") files { "src/thirdparty/zlib/*.c" } build_base_configuration( "zlib" ) diff --git a/premake5.lua b/premake5.lua index d25dc5909..fa60cb6cf 100644 --- a/premake5.lua +++ b/premake5.lua @@ -977,6 +977,7 @@ workspace "eepp" project "zlib-static" kind "StaticLib" language "C" + defines { "_LARGEFILE64_SOURCE" } files { "src/thirdparty/zlib/*.c" } build_base_configuration( "zlib" ) target_dir_thirdparty() diff --git a/src/thirdparty/libpng/pngpriv.h b/src/thirdparty/libpng/pngpriv.h index 7018f3dba..2a5b42343 100644 --- a/src/thirdparty/libpng/pngpriv.h +++ b/src/thirdparty/libpng/pngpriv.h @@ -524,7 +524,7 @@ * if possible. */ # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) -# include +# include # endif # else # include