Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Unified Diff: sky/engine/config.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/config.h
diff --git a/sky/engine/config.h b/sky/engine/config.h
index 2a7aeb3f5ecb4c755291c89e98c7fd61138272c5..5c137f79785003ad76c9fbc812e79f7a55a81b4b 100644
--- a/sky/engine/config.h
+++ b/sky/engine/config.h
@@ -24,6 +24,10 @@
/* Include compiler specific macros */
#include "wtf/Compiler.h"
+#if COMPILER(MSVC)
+#define _USE_MATH_DEFINES // Make math.h behave like other platforms.
+#endif
+
/* ==== Platform adaptation macros: these describe properties of the target environment. ==== */
/* HAVE() - specific system features (headers, functions or similar) that are present or not */

Powered by Google App Engine
This is Rietveld 408576698