Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2600)

Unified Diff: build/build_config.h

Issue 176003002: gtk: Make sure TOOLKIT_GTK is defined correctly when not using aura on all x11 platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nacl Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/build_config.h
diff --git a/build/build_config.h b/build/build_config.h
index 2a4837bf14ce647befca30d752321a32f4fd0107..78d010d43ba4ba3b818cd8b65bcf08cda5f2519b 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698