From c266f14414471d5252130c70bafa0c60f85a265c Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 17 Dec 2009 11:38:36 +0100 Subject: Use snprintf() on DOS, we don't want crashes. Non-ancient compilers have it. Preferably, we would detect the presence of such functions, but _some_ folks oppose feature tests. --- crawl-ref/source/AppHdr.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'crawl-ref/source/AppHdr.h') diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index 1b43a1e646..44ab312c1a 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -179,14 +179,6 @@ #include #include "libdos.h" - #ifdef __DJGPP__ - #define NEED_SNPRINTF - - // [dshaligram] This is distressing, but djgpp lacks (v)snprintf, and - // we have to support DOS. Ow. FIXME - #define vsnprintf(buf, size, format, args) vsprintf(buf, format, args) - #endif - #include #define round(x) floor((x)+0.5) @@ -506,7 +498,6 @@ // Uncomment these if you can't find these functions on your system // #define NEED_USLEEP -// #define NEED_SNPRINTF #ifdef __cplusplus -- cgit v1.2.3-54-g00ecf