[iortcw] 325/497: SP: Only define abstracted Q_vsnprintf for _MSC_VER in g_funcs.h and g_func_decs.h

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:17 UTC 2017


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

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 7c44c27afc4b9e7039c613f9ba108c393c4e522a
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Mar 24 16:40:51 2015 -0400

    SP: Only define abstracted Q_vsnprintf for _MSC_VER in g_funcs.h and g_func_decs.h
---
 SP/code/game/g_func_decs.h | 2 ++
 SP/code/game/g_funcs.h     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/SP/code/game/g_func_decs.h b/SP/code/game/g_func_decs.h
index 4f8957e..5fd9377 100644
--- a/SP/code/game/g_func_decs.h
+++ b/SP/code/game/g_func_decs.h
@@ -52,7 +52,9 @@ extern int Q_stricmp ( const char * s1 , const char * s2 ) ;
 extern int Q_strncmp ( const char * s1 , const char * s2 , int n ) ;
 extern int Q_stricmpn ( const char * s1 , const char * s2 , int n ) ;
 extern void Q_strncpyz ( char * dest , const char * src , int destsize ) ;
+#ifdef _MSC_VER
 extern int Q_vsnprintf ( char * str , size_t size , const char * format , va_list ap ) ;
+#endif
 extern qboolean Q_isintegral ( float f ) ;
 extern qboolean Q_isanumber ( const char * s ) ;
 extern int Q_isforfilename ( int c ) ;
diff --git a/SP/code/game/g_funcs.h b/SP/code/game/g_funcs.h
index 617c677..b1c8e81 100644
--- a/SP/code/game/g_funcs.h
+++ b/SP/code/game/g_funcs.h
@@ -52,7 +52,9 @@ If you have questions concerning this license or the applicable additional terms
 {"Q_strncmp", (byte *)Q_strncmp},
 {"Q_stricmpn", (byte *)Q_stricmpn},
 {"Q_strncpyz", (byte *)Q_strncpyz},
+#ifdef _MSC_VER
 {"Q_vsnprintf", (byte *)Q_vsnprintf},
+#endif
 {"Q_isintegral", (byte *)Q_isintegral},
 {"Q_isanumber", (byte *)Q_isanumber},
 {"Q_isforfilename", (byte *)Q_isforfilename},

-- 
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