Title: [149958] releases/WebKitGTK/webkit-2.0/Source/WTF
Revision
149958
Author
[email protected]
Date
2013-05-12 07:11:47 -0700 (Sun, 12 May 2013)

Log Message

Merge r145701 - Support C++11 features in GCC <4.6
https://bugs.webkit.org/show_bug.cgi?id=111553

Reviewed by Simon Hausmann.

Enable support for rvalue references from gcc 4.3, deleted functions
from gcc 4.4, explicit conversion from gcc 4.5, and strongly typed
enums from gcc 4.6.

* wtf/Compiler.h:

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog (149957 => 149958)


--- releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog	2013-05-12 14:05:37 UTC (rev 149957)
+++ releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog	2013-05-12 14:11:47 UTC (rev 149958)
@@ -1,3 +1,16 @@
+2013-03-13  Allan Sandfeld Jensen  <[email protected]>
+
+        Support C++11 features in GCC <4.6
+        https://bugs.webkit.org/show_bug.cgi?id=111553
+
+        Reviewed by Simon Hausmann.
+
+        Enable support for rvalue references from gcc 4.3, deleted functions
+        from gcc 4.4, explicit conversion from gcc 4.5, and strongly typed
+        enums from gcc 4.6. 
+
+        * wtf/Compiler.h:
+
 2013-02-21  Martin Robinson  <[email protected]>
 
         A couple more 'make dist' fixes for WebKitGTK+.

Modified: releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h (149957 => 149958)


--- releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h	2013-05-12 14:05:37 UTC (rev 149957)
+++ releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h	2013-05-12 14:11:47 UTC (rev 149958)
@@ -122,18 +122,28 @@
 
 /* Specific compiler features */
 #if COMPILER(GCC) && !COMPILER(CLANG)
-#if GCC_VERSION_AT_LEAST(4, 7, 0) && defined(__cplusplus) && __cplusplus >= 201103L
+#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L)
+#if GCC_VERSION_AT_LEAST(4, 3, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1
+#define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1
+#endif
+#if GCC_VERSION_AT_LEAST(4, 4, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1
+#endif
+#if GCC_VERSION_AT_LEAST(4, 5, 0)
+#define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1
+#endif
+#if GCC_VERSION_AT_LEAST(4, 6, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1
+/* Strong enums should work from gcc 4.4, but doesn't seem to support some operators */
+#define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1
+#endif
+#if GCC_VERSION_AT_LEAST(4, 7, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL 1
-
-#elif GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)
-#define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1 
 #endif
+#endif /* defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L) */
+#endif /* COMPILER(GCC) */
 
-#endif
-
 /* COMPILER(MINGW) - MinGW GCC */
 /* COMPILER(MINGW64) - mingw-w64 GCC - only used as additional check to exclude mingw.org specific functions */
 #if defined(__MINGW32__)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to