mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix #if *_ENABLED inconsistencies, should check if defined
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
62858097aa
commit
9c0bd332a5
@@ -133,7 +133,7 @@ String realpath(const String &p_path) {
|
||||
|
||||
::CloseHandle(hFile);
|
||||
return buffer.simplify_path();
|
||||
#elif UNIX_ENABLED
|
||||
#elif defined(UNIX_ENABLED)
|
||||
char *resolved_path = ::realpath(p_path.utf8().get_data(), NULL);
|
||||
|
||||
if (!resolved_path)
|
||||
|
||||
Reference in New Issue
Block a user