Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
72bdfdbc
Commit
72bdfdbc
authored
Sep 29, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http-parser: Disable MSVC warnings locally
parent
0812caae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
deps/http-parser/http_parser.h
+5
-0
src/win32/msvc-compat.h
+0
-10
No files found.
deps/http-parser/http_parser.h
View file @
72bdfdbc
...
...
@@ -27,6 +27,11 @@ extern "C" {
#define HTTP_PARSER_VERSION_MAJOR 1
#define HTTP_PARSER_VERSION_MINOR 0
#ifdef _MSC_VER
/* disable silly warnings */
# pragma warning(disable: 4127 4214)
#endif
#include <sys/types.h>
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(_MSC_VER)
typedef
__int8
int8_t
;
...
...
src/win32/msvc-compat.h
View file @
72bdfdbc
...
...
@@ -9,16 +9,6 @@
#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 */
# define F_OK 0
/* existence check */
# define W_OK 2
/* write mode check */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment