chiark / gitweb /
Add an automatic check for HAVE_SENSIBLE_ABSOLUTE_SIZE_FUNCTION by
authorSimon Tatham <anakin@pobox.com>
Sat, 24 Jan 2009 17:58:42 +0000 (17:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 24 Jan 2009 17:58:42 +0000 (17:58 +0000)
using PANGO_CHECK_VERSION. (Irritatingly, the latter is not
available in all versions of Pango, so we have to be cautious about
using it at all. *sigh*)

[originally from svn r8430]

gtk.c

diff --git a/gtk.c b/gtk.c
index 5f2ef2294d729f8a96e50179c79ab470c8968586..1b42926cb920dd14587d9c8ec579f088edad1f0a 100644 (file)
--- a/gtk.c
+++ b/gtk.c
 #include "puzzles.h"
 
 #if GTK_CHECK_VERSION(2,0,0)
-#define USE_PANGO
+# define USE_PANGO
+# ifdef PANGO_VERSION_CHECK
+#  if PANGO_VERSION_CHECK(1,8,0)
+#   define HAVE_SENSIBLE_ABSOLUTE_SIZE_FUNCTION
+#  endif
+# endif
 #endif
 
 #ifdef DEBUGGING