]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the xft build
authorPo Lu <luangruo@yahoo.com>
Sun, 16 Jan 2022 11:45:54 +0000 (19:45 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 16 Jan 2022 11:45:54 +0000 (19:45 +0800)
* src/xsettings.h [!HAVE_PGTK]: Include dispextern.h and remove
duplicate definition of Display_Info.

src/xsettings.h

index 266526df101e5291d5b501d452886555c0f6f07f..ccaa36489d0d603fc8326b287d50620fac82de8e 100644 (file)
@@ -21,15 +21,14 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #define XSETTINGS_H
 
 #ifndef HAVE_PGTK
+#include "dispextern.h"
 #include <X11/Xlib.h>
 #endif
 
 struct x_display_info;
 struct pgtk_display_info;
 
-#ifndef HAVE_PGTK
-typedef struct x_display_info Display_Info;
-#else
+#ifdef HAVE_PGTK
 typedef struct pgtk_display_info Display_Info;
 #endif