Commit 1dc3a3e6 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-05-11 Igor Oliveira <igor.oliveira@openbossa.org>

        Reviewed by Eric Seidel.

        WebKit does not build with GCCE
        https://bugs.webkit.org/show_bug.cgi?id=60667

        Allow compile WebKit with GCCE

        * wtf/Alignment.h:
        * wtf/Platform.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7c155a2f
2011-05-11 Igor Oliveira <igor.oliveira@openbossa.org>
Reviewed by Eric Seidel.
WebKit does not build with GCCE
https://bugs.webkit.org/show_bug.cgi?id=60667
Allow compile WebKit with GCCE
* wtf/Alignment.h:
* wtf/Platform.h:
2011-05-11 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
......
......@@ -23,7 +23,7 @@
#include <wtf/Platform.h>
#if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW)
#if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW) || COMPILER(GCCE)
#define WTF_ALIGN_OF(type) __alignof__(type)
#define WTF_ALIGNED(variable_type, variable, n) variable_type variable __attribute__((__aligned__(n)))
#elif COMPILER(MSVC)
......
......@@ -80,6 +80,13 @@
#define RVCT_VERSION_AT_LEAST(major, minor, patch, build) 0
#endif
/* COMPILER(GCCE) - GNU Compiler Collection for Embedded */
#if defined(__GCCE__)
#define WTF_COMPILER_GCCE 1
#define GCCE_VERSION (__GCCE__ * 10000 + __GCCE_MINOR__ * 100 + __GCCE_PATCHLEVEL__)
#define GCCE_VERSION_AT_LEAST(major, minor, patch) (GCCE_VERSION >= (major * 10000 + minor * 100 + patch))
#endif
/* COMPILER(GCC) - GNU Compiler Collection */
/* --gnu option of the RVCT compiler also defines __GNUC__ */
#if defined(__GNUC__) && !COMPILER(RVCT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment