Skip to content

Commit

Permalink
Turn off Visual C++ warnings for v8.h include
Browse files Browse the repository at this point in the history
  • Loading branch information
pmed committed Jul 28, 2017
1 parent cdd2a80 commit bdf9f2e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/test_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <functional>
#include <v8.h>

#include "v8pp/utility.hpp"
#include "test.hpp"
Expand Down
2 changes: 2 additions & 0 deletions v8pp/call_from_v8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

#include <functional>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/convert.hpp"
#include "v8pp/utility.hpp"
Expand Down
2 changes: 2 additions & 0 deletions v8pp/call_v8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#ifndef V8PP_CALL_V8_HPP_INCLUDED
#define V8PP_CALL_V8_HPP_INCLUDED

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/convert.hpp"

Expand Down
2 changes: 2 additions & 0 deletions v8pp/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#include <string>
#include <map>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/convert.hpp"

Expand Down
2 changes: 2 additions & 0 deletions v8pp/convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#ifndef V8PP_CONVERT_HPP_INCLUDED
#define V8PP_CONVERT_HPP_INCLUDED

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include <climits>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions v8pp/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

#include <utility>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

namespace v8pp {

Expand Down
3 changes: 3 additions & 0 deletions v8pp/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#define V8PP_JSON_HPP_INCLUDED

#include <string>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

namespace v8pp {

Expand Down
2 changes: 2 additions & 0 deletions v8pp/module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#ifndef V8PP_MODULE_HPP_INCLUDED
#define V8PP_MODULE_HPP_INCLUDED

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/config.hpp"
#include "v8pp/function.hpp"
Expand Down
3 changes: 3 additions & 0 deletions v8pp/object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#define V8PP_OBJECT_HPP_INCLUDED

#include <cstring>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/convert.hpp"

Expand Down
2 changes: 2 additions & 0 deletions v8pp/persistent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#ifndef V8PP_PERSISTENT_HPP_INCLUDED
#define V8PP_PERSISTENT_HPP_INCLUDED

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#include "v8pp/convert.hpp"

Expand Down
2 changes: 2 additions & 0 deletions v8pp/throw_ex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#include <string>
#include <vector>

#pragma warning(push, 0)
#include <v8.h>
#pragma warning(pop)

#ifdef WIN32
#include <windows.h>
Expand Down

0 comments on commit bdf9f2e

Please sign in to comment.