msvc: disable type truncation warnings

This commit is contained in:
Frank Morgner 2017-10-28 00:11:21 +02:00
parent 3693a96911
commit 385a0392ce
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@
#include <sys/timeb.h>
#include <sys/stat.h>
#ifdef _MSC_VER
// TODO fix data truncation instead of disabling them
// VC++ 2015 changes truncation warnings from 4244 to 4267.
#pragma warning (disable : 4267)
#pragma warning (disable : 4244)
#endif
#ifndef strcasecmp
#define strcasecmp stricmp
#endif