[iortcw] 87/152: All: Fix building on OSX

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit f2a27fac7d48892a5dc2e79a59f81c89f4a97fad
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Thu Jul 21 18:42:02 2016 -0400

    All: Fix building on OSX
---
 MP/code/sys/sys_unix.c | 3 ++-
 SP/code/sys/sys_unix.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/MP/code/sys/sys_unix.c b/MP/code/sys/sys_unix.c
index 4318eac..941b689 100644
--- a/MP/code/sys/sys_unix.c
+++ b/MP/code/sys/sys_unix.c
@@ -78,6 +78,7 @@ char *Sys_DefaultHomePath(void)
 				Q_strcat(homePath, sizeof(homePath), com_homepath->string);
 			else
 				Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_MACOSX);
+		}
 #else
 #ifdef USE_XDG
 		if( ( p1 = getenv( "XDG_DATA_HOME" ) ) != NULL )
@@ -108,7 +109,7 @@ char *Sys_DefaultHomePath(void)
 				Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_UNIX);
 		}
 #endif // USE_XDG
-#endif
+#endif // __APPLE__
 	}
 
 	return homePath;
diff --git a/SP/code/sys/sys_unix.c b/SP/code/sys/sys_unix.c
index 16db8af..1d82b2d 100644
--- a/SP/code/sys/sys_unix.c
+++ b/SP/code/sys/sys_unix.c
@@ -78,6 +78,7 @@ char *Sys_DefaultHomePath(void)
 				Q_strcat(homePath, sizeof(homePath), com_homepath->string);
 			else
 				Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_MACOSX);
+		}
 #else
 #ifdef USE_XDG
 		if( ( p1 = getenv( "XDG_DATA_HOME" ) ) != NULL )
@@ -108,7 +109,7 @@ char *Sys_DefaultHomePath(void)
 				Q_strcat(homePath, sizeof(homePath), HOMEPATH_NAME_UNIX);
 		}
 #endif // USE_XDG
-#endif
+#endif // __APPLE__
 	}
 
 	return homePath;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list