Index: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
index 66b717e7fbb578ec3483b7f9042d233532377b9f..8f5e81233dd37ed68930614a67e1e7f00845c0b1 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
@@ -5,10 +5,16 @@ |
#if defined(__clang__) |
#pragma clang diagnostic push |
#pragma clang diagnostic ignored "-Wunused-private-field" |
+#elif defined(_MSC_VER) |
+#pragma warning(push) |
+#pragma warning(disable:4056) |
+#pragma warning(disable:4756) |
#endif |
#include "{{module.path}}.h" |
+#include <math.h> |
+ |
#include "mojo/public/cpp/bindings/lib/array_serialization.h" |
#include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
#include "mojo/public/cpp/bindings/lib/bounds_checker.h" |
@@ -83,4 +89,6 @@ const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons |
#if defined(__clang__) |
#pragma clang diagnostic pop |
+#elif defined(_MSC_VER) |
+#pragma warning(pop) |
#endif |