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
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 15 additions and 15 deletions

View file

@ -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) {