Win32 has snprintf and vsnprintf underscored. Use proper defines if needed.

This commit is contained in:
Marcus Sundberg 2000-01-05 01:19:13 +00:00
parent 048b8393f3
commit d28880656b
2 changed files with 16 additions and 0 deletions

View File

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

View File

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