]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix compilation error caused by X header.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 21 Jul 2014 13:48:23 +0000 (13:48 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 21 Jul 2014 13:48:23 +0000 (13:48 +0000)
atom/browser/ui/file_dialog_gtk.cc
atom/browser/ui/views/global_menu_bar_x11.cc

index af08f8247f690dc65989080b284aa414aa3da33f..21cd14166500ebe375551d7260d83f39385c0423 100644 (file)
@@ -8,6 +8,12 @@
 #include <gdk/gdkx.h>
 #include <gtk/gtk.h>
 
+// This conflicts with mate::Converter,
+#undef True
+#undef False
+// and V8.
+#undef None
+
 #include "atom/browser/native_window.h"
 #include "base/callback.h"
 #include "base/file_util.h"
index 4b7338eab16c0e24dd4fe7f3365e81f08ef7a70d..fd6f80cdec285f78020171305427b982b3ae2a6b 100644 (file)
@@ -6,6 +6,12 @@
 
 #include <X11/Xlib.h>
 
+// This conflicts with mate::Converter,
+#undef True
+#undef False
+// and V8.
+#undef None
+
 #include <dlfcn.h>
 #include <glib-object.h>