Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix windows build: M_PI undefined

  • Loading branch information...
commit 5e5f7d135258715d7622471ef34f9971085d57af 1 parent 19a11ab
@rogerwang rogerwang authored
Showing with 9 additions and 6 deletions.
  1. +4 −4 src/api/dispatcher.cc
  2. +5 −2 src/api/window_bindings.cc
View
8 src/api/dispatcher.cc
@@ -19,10 +19,6 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define V8_USE_UNSAFE_HANDLES
-#if defined(OS_WIN)
-#define _USE_MATH_DEFINES
-#include <math.h>
-#endif
#include "content/nw/src/api/dispatcher.h"
@@ -39,6 +35,10 @@
#undef LOG
#undef ASSERT
+#if defined(OS_WIN)
+#define _USE_MATH_DEFINES
+#include <math.h>
+#endif
#include "third_party/WebKit/Source/config.h"
#include "third_party/WebKit/Source/core/frame/Frame.h"
#include "third_party/WebKit/Source/web/WebFrameImpl.h"
View
7 src/api/window_bindings.cc
@@ -18,8 +18,6 @@
// ETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#define _USE_MATH_DEFINES
-
#include "content/nw/src/api/window_bindings.h"
#include "base/values.h"
@@ -29,6 +27,11 @@
#include "grit/nw_resources.h"
#undef LOG
using namespace WebCore;
+#if defined(OS_WIN)
+#define _USE_MATH_DEFINES
+#include <math.h>
+#endif
+
#include "third_party/WebKit/Source/config.h"
#include "third_party/WebKit/Source/core/html/HTMLIFrameElement.h"
Please sign in to comment.
Something went wrong with that request. Please try again.