comparison dwcompat.h @ 2955:f99414164f5b

Win: Enable vsnprintf() usage with Visual C for extra safety.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 06 Jan 2023 07:58:49 +0000
parents 22327163b35c
children
comparison
equal deleted inserted replaced
2954:40a5e6946e2b 2955:f99414164f5b
234 #define P_NOWAIT _P_NOWAIT 234 #define P_NOWAIT _P_NOWAIT
235 #endif 235 #endif
236 236
237 #ifdef _MSC_VER 237 #ifdef _MSC_VER
238 /* Handle deprecated functions in Visual C */ 238 /* Handle deprecated functions in Visual C */
239 # if _MSC_VER < 1500
240 # define vsnprintf _vsnprintf
241 # endif
242 #define HAVE_VSNPRINTF
239 # if _MSC_VER >= 1400 243 # if _MSC_VER >= 1400
240 # define strcasecmp(a, b) _stricmp(a, b) 244 # define strcasecmp(a, b) _stricmp(a, b)
241 # define strncasecmp(a, b, c) _strnicmp(a, b, c) 245 # define strncasecmp(a, b, c) _strnicmp(a, b, c)
242 # define strdup(a) _strdup(a) 246 # define strdup(a) _strdup(a)
243 # define snprintf _snprintf 247 # define snprintf _snprintf