diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-17 11:38:36 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-17 11:38:36 +0100 |
commit | c266f14414471d5252130c70bafa0c60f85a265c (patch) | |
tree | 37a46a422f6ea7f1f88675cb728ac1be8dcd3619 /crawl-ref/source/AppHdr.h | |
parent | b7d134a9c8a634cdab2cd060e561304e1d12979d (diff) | |
download | crawl-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.h | 9 |
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 |