summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-09-12 23:36:11 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-09-12 23:36:11 -0400
commit9cb49a3e224bbd5a3e6630aa053e516ecbc46083 (patch)
tree869ccefcfba9022122ace6bf954e98d2f8d1e8f3
parente2ebedbac0d6b04ec298414eec02f4b4692392bc (diff)
downloadpango-9cb49a3e224bbd5a3e6630aa053e516ecbc46083.tar.gz
Fix build on OS X
https://bugzilla.gnome.org/show_bug.cgi?id=770729
-rw-r--r--pango/pangocoretext-fontmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 0d7d793f..6cd9fe9f 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -110,8 +110,8 @@ typedef struct
PangoWeight pango_weight;
} PangoCTWeight;
-const float ct_weight_min = -0.7f;
-const float ct_weight_max = 0.8f;
+#define ct_weight_min -0.7f
+#define ct_weight_max 0.8f
/* This map is based on empirical data from analyzing a large collection of
* fonts and comparing the opentype value with the value that OSX returns.