summaryrefslogtreecommitdiffstats
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-17 10:12:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-17 10:30:15 +0100
commit0a7579b161834d052e89e9319ed248a04554e85d (patch)
treeefbd1ce1c0640ac685667155e57a0354e58e9395 /modules/mono/utils
parent107f2961ccfac179af7682eb5f6e7ea91e80040c (diff)
downloadredot-engine-0a7579b161834d052e89e9319ed248a04554e85d.tar.gz
Fix `#if *_ENABLED` inconsistencies, should check if defined
Co-authored-by: Caroline Joy Bell <halotroop2288@proton.me>
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/path_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/utils/path_utils.cpp b/modules/mono/utils/path_utils.cpp
index aa97534675..ee17a668d7 100644
--- a/modules/mono/utils/path_utils.cpp
+++ b/modules/mono/utils/path_utils.cpp
@@ -152,7 +152,7 @@ String realpath(const String &p_path) {
}
return result.simplify_path();
-#elif UNIX_ENABLED
+#elif defined(UNIX_ENABLED)
char *resolved_path = ::realpath(p_path.utf8().get_data(), nullptr);
if (!resolved_path) {