Fix some warnings in GLog/GFlags when buildingwith MSVC2013

Those warnings were only addressed for MSVC2015 so far.
This commit is contained in:
Sergey Sharybin 2016-02-20 11:31:58 +05:00
parent ff675f0367
commit aff60520bd
1 changed files with 3 additions and 1 deletions

View File

@ -69,8 +69,10 @@ extern GFLAGS_DLL_DECL int snprintf(char *str, size_t size,
extern int GFLAGS_DLL_DECL safe_vsnprintf(char *str, size_t size,
const char *format, va_list ap);
#define vsnprintf(str, size, format, ap) safe_vsnprintf(str, size, format, ap)
#if defined(_MSC_VER) && (_MSC_VER < 1400)
#define va_copy(dst, src) (dst) = (src)
#endif
#endif
#endif /* #if !defined(__MINGW32__) && !defined(__MINGW64__) */
#ifdef _MSC_VER
@ -109,7 +111,7 @@ inline void setenv(const char* name, const char* value, int) {
#define unlink _unlink
#endif
#if !(defined(_MSC_VER) && _MSC_VER >= 1900)
#if !(defined(_MSC_VER) && _MSC_VER >= 1400)
#define PRId32 "d"
#define PRIu32 "u"
#define PRId64 "I64d"