Title: [151531] trunk/Source/WTF
Revision
151531
Author
[email protected]
Date
2013-06-12 17:59:48 -0700 (Wed, 12 Jun 2013)

Log Message

[Windows] Activate supported C++11 Features for VS2010
https://bugs.webkit.org/show_bug.cgi?id=117569

Reviewed by Anders Carlsson.

* wtf/Compiler.h: Turn on rvalue references and static_assert
when compiling with VS2010 (or newer)

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (151530 => 151531)


--- trunk/Source/WTF/ChangeLog	2013-06-13 00:34:45 UTC (rev 151530)
+++ trunk/Source/WTF/ChangeLog	2013-06-13 00:59:48 UTC (rev 151531)
@@ -1,3 +1,13 @@
+2013-06-12  Brent Fulgham  <[email protected]>
+
+        [Windows] Activate supported C++11 Features for VS2010
+        https://bugs.webkit.org/show_bug.cgi?id=117569
+
+        Reviewed by Anders Carlsson.
+
+        * wtf/Compiler.h: Turn on rvalue references and static_assert
+        when compiling with VS2010 (or newer)
+
 2013-06-07  Roger Fong  <[email protected]>
 
         Unreviewed. Makefile fix. Copy WTF.dll over as well.

Modified: trunk/Source/WTF/wtf/Compiler.h (151530 => 151531)


--- trunk/Source/WTF/wtf/Compiler.h	2013-06-13 00:34:45 UTC (rev 151530)
+++ trunk/Source/WTF/wtf/Compiler.h	2013-06-13 00:59:48 UTC (rev 151531)
@@ -89,8 +89,14 @@
 #define WTF_COMPILER_QUIRK_FINAL_IS_CALLED_SEALED 1
 #endif
 
+/* Check for VS2010 or newer */
+#if _MSC_VER >= 1600
+#define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1
+#define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1
 #endif
 
+#endif /* defined(_MSC_VER) */
+
 /* COMPILER(RVCT) - ARM RealView Compilation Tools */
 #if defined(__CC_ARM) || defined(__ARMCC__)
 #define WTF_COMPILER_RVCT 1
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to