Allow for warning-free build of common with MS VC on warning level 3.

This commit is contained in:
Oliver Schmidt
2013-04-07 22:19:23 +02:00
parent 365668785c
commit ffb8595440
4 changed files with 12 additions and 6 deletions

View File

@@ -39,11 +39,11 @@
/* If we have stdint.h, include it, otherwise try some quesswork on types.
* gcc doesn't define __STDC_VERSION__ without special flags, so check for
* gcc explicitly. Undefined symbols are replaced by zero, so a check for
* defined(__GNUC__) is not necessary.
* gcc and msvc don't define __STDC_VERSION__ without special flags, so check
* for them explicitly. Undefined symbols are replaced by zero, so a check for
* defined(__GNUC__) or defined(_MSC_VER) is not necessary.
*/
#if (__STDC_VERSION__ >= 199901) || (__GNUC__ >= 3)
#if (__STDC_VERSION__ >= 199901) || (__GNUC__ >= 3) || (_MSC_VER >= 1600)
#include <stdint.h>
#else