diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-24 18:49:14 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-24 18:49:14 +0000 |
commit | c436a5a6585bb16d9756f6a870ba0dec375ac024 (patch) | |
tree | 39d666301be6c3cf1dcf5e6abf0a3a464858f4e5 | |
parent | 9bd534e2090e169027958666a56526d69709b7b8 (diff) | |
download | chromium_src-c436a5a6585bb16d9756f6a870ba0dec375ac024.zip chromium_src-c436a5a6585bb16d9756f6a870ba0dec375ac024.tar.gz chromium_src-c436a5a6585bb16d9756f6a870ba0dec375ac024.tar.bz2 |
gtk: Make sure TOOLKIT_GTK is defined correctly when not using aura on all x11 platforms.
BUG=342338
R=erg@chromium.org
Review URL: https://codereview.chromium.org/176003002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252952 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/build_config.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/build/build_config.h b/build/build_config.h index 2a4837b..78d010d 100644 --- a/build/build_config.h +++ b/build/build_config.h @@ -30,10 +30,6 @@ #define OS_NACL 1 #elif defined(__linux__) #define OS_LINUX 1 -// Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined. -#if !defined(TOOLKIT_VIEWS) && defined(USE_X11) && !defined(USE_AURA) -#define TOOLKIT_GTK -#endif #if defined(__GLIBC__) && !defined(__UCLIBC__) // we really are using glibc, not uClibc pretending to be glibc #define LIBC_GLIBC @@ -43,19 +39,22 @@ #define TOOLKIT_VIEWS 1 #elif defined(__FreeBSD__) #define OS_FREEBSD 1 -#define TOOLKIT_GTK #elif defined(__OpenBSD__) #define OS_OPENBSD 1 -#define TOOLKIT_GTK #elif defined(__sun) #define OS_SOLARIS 1 -#define TOOLKIT_GTK #elif defined(__QNXNTO__) #define OS_QNX 1 #else #error Please add support for your platform in build/build_config.h #endif +// Use TOOLKIT_GTK on X11 if TOOLKIT_VIEWS and USE_AURA aren't defined. +#if defined(USE_X11) && !defined(TOOLKIT_VIEWS) && !defined(USE_AURA) && \ + !defined(OS_NACL) +#define TOOLKIT_GTK +#endif + #if defined(USE_OPENSSL) && defined(USE_NSS) #error Cannot use both OpenSSL and NSS #endif |