1 /* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
2 The author disclaims copyright to this source code. */
3 #ifndef __STR_STRSAFE_H
4 #define __STR_STRSAFE_H
6 /* When using MSVC, use <strsafe.h>, emulate it on other compiler (e.g. mingw) */
14 #define STRSAFE_E_INSUFFICIENT_BUFFER -1
15 #define _vsnprintf_s(p,s,z,f,a) vsnprintf(p,s,f,a)
16 #define StringCchVPrintfA vsnprintf
17 #define StringCchPrintfA snprintf
18 #define _stricmp strcasecmp
19 #define _strnicmp strncasecmp