summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.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/libutil.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/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index b32aa83be2..66cb9bb693 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -161,10 +161,6 @@ std::string comma_separated_line(Z start, Z end,
void usleep( unsigned long time );
#endif
-#ifdef NEED_SNPRINTF
-int snprintf( char *str, size_t size, const char *format, ... );
-#endif
-
#ifndef USE_TILE
void cgotoxy(int x, int y, GotoRegion region = GOTO_CRT);
#endif