From: Thomas Debesse <dev@illwieckz.net>
Date: Sun, 25 Nov 2018 00:26:46 +0000 (+0100)
Subject: q3map2: better detection of Windows
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=67691bc2b1c087dd93b0a94a27e8eff95313c6d5;p=xonotic%2Fnetradiant.git

q3map2: better detection of Windows
---

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
 }