From: Ivan Maidanski Date: Fri, 7 Sep 2018 18:21:01 +0000 (+0300) Subject: Fix GC_VSNPRINTF in cordprnt for DJGPP and MS VC for WinCE X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cac8158cff50e8ae4475eb24446f32192d59495c;p=gc Fix GC_VSNPRINTF in cordprnt for DJGPP and MS VC for WinCE (fix of commit c10a1d900) GC-internal DJGPP and MSWINCE macros are not available in cord. * cord/cordprnt.c (GC_VSNPRINTF): Test __DJGPP__ instead of DJGPP macro. * cord/cordprnt.c [_MSC_VER] (GC_VSNPRINTF): Test _WIN32_WCE instead of MSWINCE macro. --- diff --git a/cord/cordprnt.c b/cord/cordprnt.c index 2dd5691d..d9d9f536 100644 --- a/cord/cordprnt.c +++ b/cord/cordprnt.c @@ -174,11 +174,11 @@ static int extract_conv_spec(CORD_pos source, char *buf, return(result); } -#if defined(DJGPP) || defined(__STRICT_ANSI__) +#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) -# ifdef MSWINCE +# if defined(_WIN32_WCE) /* _vsnprintf is deprecated in WinCE */ # define GC_VSNPRINTF StringCchVPrintfA # else