From 67691bc2b1c087dd93b0a94a27e8eff95313c6d5 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 25 Nov 2018 01:26:46 +0100 Subject: [PATCH] q3map2: better detection of Windows --- tools/quake3/q3map2/path_init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/quake3/q3map2/path_init.c b/tools/quake3/q3map2/path_init.c index b208ecce..725f2bbf 100644 --- a/tools/quake3/q3map2/path_init.c +++ b/tools/quake3/q3map2/path_init.c @@ -70,9 +70,9 @@ char *homeBasePath = NULL; */ char *LokiGetHomeDir( void ){ - #ifndef Q_UNIX + #if GDEF_OS_WINDOWS return NULL; - #else + #else // !GDEF_OS_WINDOWS static char buf[ 4096 ]; struct passwd pw, *pwp; char *home; @@ -127,10 +127,10 @@ void LokiInitPaths( char *argv0 ){ } #endif // (GDEF_OS_POSIX && !GDEF_OS_MACOS) - #ifndef Q_UNIX + #if GDEF_OS_WINDOWS /* this is kinda crap, but hey */ strcpy( installPath, "../" ); - #else + #else // !GDEF_OS_WINDOWS char temp[ MAX_OS_PATH ]; char *path; @@ -213,7 +213,7 @@ void LokiInitPaths( char *argv0 ){ *( strrchr( installPath, '/' ) ) = '\0'; *( strrchr( installPath, '/' ) ) = '\0'; } - #endif + #endif // !GDEF_OS_WINDOWS } -- 2.39.2