diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-10-30 22:24:04 -0700 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2016-11-16 19:54:41 -0600 |
commit | 27e7b242d65a78d40d68f20ac375929914c3b7a8 (patch) | |
tree | 588384dbabd2627ff1cc9257c9f8bad17269f0ca /registryd/display.h | |
parent | 66ac36c66a420f497262e37f5553d6fea5635454 (diff) | |
download | at-spi2-core-27e7b242d65a78d40d68f20ac375929914c3b7a8.tar.gz |
Block out X11 API with #ifdefs
We should not include any X11 headers when building with --disable-x11,
so put them inside #ifdef guards, and don't use X symbols.
https://bugzilla.gnome.org/show_bug.cgi?id=773710
Diffstat (limited to 'registryd/display.h')
-rw-r--r-- | registryd/display.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/registryd/display.h b/registryd/display.h index 2238a55d..5aa44702 100644 --- a/registryd/display.h +++ b/registryd/display.h @@ -23,12 +23,14 @@ #ifndef SPI_DISPLAY_H_ #define SPI_DISPLAY_H_ +#if HAVE_X11 #include <X11/Xlib.h> Display *spi_set_display (const char *display_name); Display *spi_get_display (); Window spi_get_root_window (); +#endif /* HAVE_X11 */ void spi_x_error_trap (void); int spi_x_error_release (void); |