http-parser: Disable MSVC warnings locally

This commit is contained in:
Vicent Marti 2011-09-29 15:24:41 +02:00
parent 0812caaea5
commit 72bdfdbc7c
2 changed files with 5 additions and 10 deletions

View File

@ -27,6 +27,11 @@ extern "C" {
#define HTTP_PARSER_VERSION_MAJOR 1 #define HTTP_PARSER_VERSION_MAJOR 1
#define HTTP_PARSER_VERSION_MINOR 0 #define HTTP_PARSER_VERSION_MINOR 0
#ifdef _MSC_VER
/* disable silly warnings */
# pragma warning(disable: 4127 4214)
#endif
#include <sys/types.h> #include <sys/types.h>
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(_MSC_VER) #if defined(_WIN32) && !defined(__MINGW32__) && !defined(_MSC_VER)
typedef __int8 int8_t; typedef __int8 int8_t;

View File

@ -9,16 +9,6 @@
#if defined(_MSC_VER) #if defined(_MSC_VER)
/*
* Disable silly MSVC warnings
*/
/* conditional expression is constant */
#pragma warning(disable: 4127)
/* nonstandard extension used : bit field types other than int */
#pragma warning(disable: 4214)
/* access() mode parameter #defines */ /* access() mode parameter #defines */
# define F_OK 0 /* existence check */ # define F_OK 0 /* existence check */
# define W_OK 2 /* write mode check */ # define W_OK 2 /* write mode check */