diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-09-07 21:21:01 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-09-07 21:21:01 +0300 |
commit | cac8158cff50e8ae4475eb24446f32192d59495c (patch) | |
tree | 0d6d2deacdffe2cd10fe825264f85219d52b776b /cord | |
parent | 583883ffa5d75028f4686dba655e97a5f76519fc (diff) | |
download | bdwgc-cac8158cff50e8ae4475eb24446f32192d59495c.tar.gz |
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.
Diffstat (limited to 'cord')
-rw-r--r-- | cord/cordprnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |