diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2014-06-22 12:40:10 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2014-06-22 12:40:10 +0400 |
commit | 61625812ad66d3a5e1511ecca2ead1f085326c7d (patch) | |
tree | f4555412aaf04a1f57e6fabb99bb1c56bc9e5fcc /misc.c | |
parent | 885dfa81a4f91c2223955238838b895160bb4bb2 (diff) | |
download | bdwgc-61625812ad66d3a5e1511ecca2ead1f085326c7d.tar.gz |
Fix 'implicit declaration of vsnprintf' GCC warning (if strict ANSI mode)
* cord/tests/cordtest.c (GC_SNPRINTF): Redirect to sprintf also in
case of __STRICT_ANSI__ (i.e., if -ansi compiler option specified).
* misc.c (GC_VSNPRINTF): Redirect to vsprintf also in case of
__STRICT_ANSI__.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1505,7 +1505,7 @@ GC_API void GC_CALL GC_enable_incremental(void) #define BUFSZ 1024 -#ifdef DJGPP +#if defined(DJGPP) || defined(__STRICT_ANSI__) /* vsnprintf is missing in DJGPP (v2.0.3) */ # define GC_VSNPRINTF(buf, bufsz, format, args) vsprintf(buf, format, args) #elif defined(_MSC_VER) |