[dia] plugin: Use the Freetype developer's proposed way if #include'ing their headers.



commit 0b863adcad031c70601e375d72dae64fdd967752
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Mon Dec 16 23:30:40 2013 +0100

    plugin: Use the Freetype developer's proposed way if #include'ing their headers.
    
    Allows us to build against Freetype 2.5.1 (without breaking older
    versions).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720573
    
    Signed-off-by: Hans Breuer <hans breuer org>

 plug-ins/postscript/diapsft2renderer.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/postscript/diapsft2renderer.c b/plug-ins/postscript/diapsft2renderer.c
index ed4182e..9399ee9 100644
--- a/plug-ins/postscript/diapsft2renderer.c
+++ b/plug-ins/postscript/diapsft2renderer.c
@@ -30,8 +30,9 @@
 #include <pango/pangoft2.h>
 #include <pango/pango-engine.h>
 /* I'd really rather avoid this */
-#include <freetype/ftglyph.h>
-#include <freetype/ftoutln.h>
+#include <ft2build.h>
+#include FT_GLYPH_H
+#include FT_OUTLINE_H
 
 #define DPI 300
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]