Fix #if *_ENABLED inconsistencies, should check if defined

Co-authored-by: Caroline Joy Bell <halotroop2288@proton.me>
This commit is contained in:
Rémi Verschelde
2024-01-17 10:12:44 +01:00
parent 107f2961cc
commit 0a7579b161
10 changed files with 15 additions and 15 deletions

View File

@@ -45,10 +45,10 @@ def make_default_controller_mappings(target, source, env):
platform_mappings[current_platform][guid] = line
platform_variables = {
"Linux": "#if LINUXBSD_ENABLED",
"Linux": "#ifdef LINUXBSD_ENABLED",
"Windows": "#ifdef WINDOWS_ENABLED",
"Mac OS X": "#ifdef MACOS_ENABLED",
"Android": "#if defined(__ANDROID__)",
"Android": "#ifdef ANDROID_ENABLED",
"iOS": "#ifdef IOS_ENABLED",
"Web": "#ifdef WEB_ENABLED",
}