mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 09:18:48 +00:00
http-parser: Disable MSVC warnings locally
This commit is contained in:
parent
0812caaea5
commit
72bdfdbc7c
5
deps/http-parser/http_parser.h
vendored
5
deps/http-parser/http_parser.h
vendored
@ -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;
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user