mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-01-12 22:44:10 +08:00
linux: Fix compilation error caused by X header.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user