mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-23 01:11:21 +00:00
Win32 has snprintf and vsnprintf underscored. Use proper defines if needed.
This commit is contained in:
parent
048b8393f3
commit
d28880656b
2 changed files with 16 additions and 0 deletions
|
@ -85,6 +85,14 @@ void VID_UnlockBuffer (void);
|
|||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
/* Win32 have these underscored... */
|
||||
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
|
||||
# define snprintf _snprintf
|
||||
#endif
|
||||
#if !defined(HAVE_VSNPRINTF) && defined(HAVE__VSNPRINTF)
|
||||
# define vsnprintf _vsnprintf
|
||||
#endif
|
||||
|
||||
//=============================================================================
|
||||
|
||||
// the host system specifies the base of the directory tree, the
|
||||
|
|
|
@ -56,6 +56,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "world.h"
|
||||
#include "pmove.h"
|
||||
|
||||
/* Win32 have these underscored... */
|
||||
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
|
||||
# define snprintf _snprintf
|
||||
#endif
|
||||
#if !defined(HAVE_VSNPRINTF) && defined(HAVE__VSNPRINTF)
|
||||
# define vsnprintf _vsnprintf
|
||||
#endif
|
||||
|
||||
//=============================================================================
|
||||
|
||||
// the host system specifies the base of the directory tree, the
|
||||
|
|
Loading…
Reference in a new issue