diff options
-rw-r--r-- | src/stdafx.h | 1 | ||||
-rw-r--r-- | src/string.cpp | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 951ab1c38..7d7e1990b 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -232,7 +232,6 @@ #define WARN_FORMAT(string, args) #define FINAL sealed - int CDECL snprintf(char *str, size_t size, const char *format, ...) WARN_FORMAT(3, 4); #if defined(WINCE) int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap); #endif diff --git a/src/string.cpp b/src/string.cpp index 90005071d..8a95d7b6f 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -346,20 +346,6 @@ bool IsValidChar(WChar key, CharSetFilter afilter) } #ifdef WIN32 -/* Since version 3.14, MinGW Runtime has snprintf() and vsnprintf() conform to C99 but it's not the case for older versions */ -#if (__MINGW32_MAJOR_VERSION < 3) || ((__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION < 14)) -int CDECL snprintf(char *str, size_t size, const char *format, ...) -{ - va_list ap; - int ret; - - va_start(ap, format); - ret = vsnprintf(str, size, format, ap); - va_end(ap); - return ret; -} -#endif /* MinGW Runtime < 3.14 */ - #ifdef _MSC_VER /** * Almost POSIX compliant implementation of \c vsnprintf for VC compiler. |