Skip to content

Commit

Permalink
gtk: Make sure TOOLKIT_GTK is defined correctly when not using aura o…
Browse files Browse the repository at this point in the history
…n 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
  • Loading branch information
sadrul@chromium.org committed Feb 24, 2014
1 parent 9bd534e commit c436a5a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build/build_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c436a5a

Please sign in to comment.