phajdan.jr    14/09/04 18:42:13

  Added:                chromium-gcc-4.7-r0.patch
  Log:
  Fix compile with gcc-4.7, bug #518668 by Eric Bueschel.
  
  (Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 
0x4F1A2555EA71991D!)

Revision  Changes    Path
1.1                  www-client/chromium/files/chromium-gcc-4.7-r0.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-gcc-4.7-r0.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-gcc-4.7-r0.patch?rev=1.1&content-type=text/plain

Index: chromium-gcc-4.7-r0.patch
===================================================================
--- mojo/public/c/system/macros.h.orig  2014-09-03 14:48:42.963665035 +0000
+++ mojo/public/c/system/macros.h       2014-09-03 14:49:12.180255593 +0000
@@ -76,7 +76,8 @@
 // Unlike the C++11 |alignas()|, |alignment| must be an integer. It may not be 
a
 // type, nor can it be an expression like |MOJO_ALIGNOF(type)| (due to the
 // non-C++11 MSVS version).
-#if __cplusplus >= 201103L
+#if __cplusplus >= 201103L && \
+       (defined(__clang__) || (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 >= 
40800))
 #define MOJO_ALIGNAS(alignment) alignas(alignment)
 #elif defined(__GNUC__)
 #define MOJO_ALIGNAS(alignment) __attribute__((aligned(alignment)))




Reply via email to