diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-01-16 22:20:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 22:20:22 +0100 |
commit | 2c2691276211e13857950d076631b5a420a6896e (patch) | |
tree | 3f64ec968581d9d62e933eca06a82ab4837514fc /platform/linuxbsd | |
parent | 585a9344548dd56142ec4480d584daaa2950a689 (diff) | |
parent | 91a54cdbc195270556b7014d575740400955f8bf (diff) | |
download | redot-engine-2c2691276211e13857950d076631b5a420a6896e.tar.gz |
Merge pull request #71518 from akien-mga/add-LINUXBSD_ENABLED-for-non-x11-checks
Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checks
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/detect.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 747dcbd76c..f4d36f1a87 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -338,12 +338,17 @@ def configure(env: "Environment"): env.Prepend(CPPPATH=["#platform/linuxbsd"]) + env.Append( + CPPDEFINES=[ + "LINUXBSD_ENABLED", + "UNIX_ENABLED", + ("_FILE_OFFSET_BITS", 64), + ] + ) + if env["x11"]: env.Append(CPPDEFINES=["X11_ENABLED"]) - env.Append(CPPDEFINES=["UNIX_ENABLED"]) - env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", 64)]) - if env["vulkan"]: env.Append(CPPDEFINES=["VULKAN_ENABLED"]) if not env["use_volk"]: |