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 af08f82..21cd141 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 4b7338e..fd6f80c 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>