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

Unified Diff: runtime/platform/c99_support_win.h

Issue 84613002: Fix vm VS2013 compilation issue with c99_support_win.h. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/c99_support_win.h
diff --git a/runtime/platform/c99_support_win.h b/runtime/platform/c99_support_win.h
index 71ec1270974b9ce8f3a2296d64ac8a3f16bf81c6..b952ecdae4bc3fd5242bb684c90d28ad74b75f44 100644
--- a/runtime/platform/c99_support_win.h
+++ b/runtime/platform/c99_support_win.h
@@ -5,8 +5,10 @@
#ifndef PLATFORM_C99_SUPPORT_WIN_H_
#define PLATFORM_C99_SUPPORT_WIN_H_
-// Visual C++ is missing a bunch of C99 math macros and
-// functions. Define them here.
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
+
+// Before Visual Studio 2013 Visual C++ was missing a bunch of C99 math macros
+// and functions. Define them here.
#include <float.h>
#include <string.h>
@@ -70,5 +72,6 @@ static inline double round(double x) {
#define strtoll _strtoi64
#endif
+#endif
#endif // PLATFORM_C99_SUPPORT_WIN_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698