2001-09-19 Havoc Pennington <hp@redhat.com> * pango/opentype/fterrcompat.h: header to abstract the difference between FreeType 2.0.3 and 2.0.4 error codes, based on the configure check. * configure.in: check for the tterrors.h header in FreeType 2.0.3, and define HAVE_FREETYPE_2_0_3 if we have itpull/1/head
parent
9c37226efe
commit
87a475c09f
7 changed files with 26 additions and 5 deletions
@ -0,0 +1,16 @@ |
||||
|
||||
#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 |
Loading…
Reference in new issue