summaryrefslogtreecommitdiff
path: root/src/xftint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xftint.h')
-rw-r--r--src/xftint.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/xftint.h b/src/xftint.h
index 9e69900..465bb2e 100644
--- a/src/xftint.h
+++ b/src/xftint.h
@@ -1,5 +1,4 @@
/*
- * $Id$
*
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
*
@@ -44,6 +43,16 @@
#include <fontconfig/fcprivate.h>
#include <fontconfig/fcfreetype.h>
+#ifndef HAVE_CONFIG_H
+# if (FREETYPE_MAJOR > 2 || \
+ (FREETYPE_MAJOR == 2 && (FREETYPE_MINOR > 1 || \
+ (FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 5))))
+# define HAVE_FT_BITMAP_SIZE_Y_PPEM 1
+# else
+# define HAVE_FT_BITMAP_SIZE_Y_PPEM 0
+# endif
+#endif
+
typedef struct _XftMatcher {
char *object;
double (*compare) (char *object, FcValue value1, FcValue value2);