summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-17 11:38:36 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-17 11:38:36 +0100
commitc266f14414471d5252130c70bafa0c60f85a265c (patch)
tree37a46a422f6ea7f1f88675cb728ac1be8dcd3619 /crawl-ref/source/AppHdr.h
parentb7d134a9c8a634cdab2cd060e561304e1d12979d (diff)
downloadcrawl-ref-c266f14414471d5252130c70bafa0c60f85a265c.tar.gz
crawl-ref-c266f14414471d5252130c70bafa0c60f85a265c.zip
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.
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h9
1 files changed, 0 insertions, 9 deletions
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 <string>
#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 <dos.h>
#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