From b7ed839976120912c8a755fd1b0f67026b4b056f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 4 Jul 2019 21:24:34 +0200 Subject: patch 8.1.1633: cannot generate prototypes with X11 but without GUI Problem: Cannot generate prototypes with X11 but without GUI. Solution: Include X11/Intrinsic.h. --- src/gui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui.h') diff --git a/src/gui.h b/src/gui.h index a16f0986e7..dd1bbdc687 100644 --- a/src/gui.h +++ b/src/gui.h @@ -29,6 +29,12 @@ # include #endif +// Needed when generating prototypes, since FEAT_GUI is always defined then. +#if defined(FEAT_XCLIPBOARD) && !defined(FEAT_GUI_MOTIF) \ + && !defined(FEAT_GUI_ATHENA) && !defined(FEAT_GUI_GTK) +# include +#endif + #ifdef FEAT_GUI_MAC # include /*# include */ -- cgit v1.2.3