noinst_LTLIBRARIES = libpango-ot.la
libpango_ot_la_SOURCES = \
+ fterrcompat.h \
ftxopen.c \
ftxopen.h \
ftxopenf.h \
--- /dev/null
+
+#ifndef FTERRCOMPAT_H
+#define FTERRCOMPAT_H
+
+#include <config.h>
+
+#ifdef HAVE_FREETYPE_2_0_3
+#include <freetype/internal/tterrors.h>
+#else
+#define TT_Err_Ok FT_Err_Ok
+#define TT_Err_Invalid_Argument FT_Err_Invalid_Argument
+#define TT_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle
+#define TT_Err_Table_Missing FT_Err_Table_Missing
+#endif
+
+#endif
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftmemory.h>
-#include <freetype/internal/tterrors.h>
#include <freetype/internal/tttypes.h>
+#include "fterrcompat.h"
+
#include "ftxopen.h"
#include "ftxopenf.h"
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftmemory.h>
-#include <freetype/internal/tterrors.h>
#include <freetype/internal/tttypes.h>
+#include "fterrcompat.h"
+
#include "ftxopen.h"
#include "ftxopenf.h"
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftmemory.h>
-#include <freetype/internal/tterrors.h>
#include <freetype/internal/tttypes.h>
+#include "fterrcompat.h"
+
#include "ftxopen.h"
#include "ftxopenf.h"
#include <freetype/internal/ftstream.h>
#include <freetype/internal/ftmemory.h>
-#include <freetype/internal/tterrors.h>
#include <freetype/internal/tttypes.h>
+#include "fterrcompat.h"
+
#include "ftxopen.h"
#include "ftxopenf.h"
*/
#include "pango-ot-private.h"
-#include <freetype/internal/tterrors.h>
+#include "fterrcompat.h"
#include <freetype/internal/ftobjs.h>
#include <freetype/ftmodule.h>