From: Tony Cook Date: Thu, 23 Dec 2004 23:01:27 +0000 (+0000) Subject: - we were undefing the wrong macro (used as an include guard) when X-Git-Tag: Imager-0.48^2~254 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/1a4a5b1148bb8eb05122569915443cf24c0ddb68 - we were undefing the wrong macro (used as an include guard) when building the error code translation function for freetype 2. This meant most errors came out as numbers. --- diff --git a/Changes b/Changes index 07267d5f..c3b22575 100644 --- a/Changes +++ b/Changes @@ -967,6 +967,9 @@ Revision history for Perl extension Imager. - Makefile.PL now checks the directories specified by $Config{locincpth} and $Config{loclibpth} for includes and libraries respectively. Resolves: https://rt.cpan.org/Ticket/Display.html?id=2942 +- we were undefing the wrong macro (used as an include guard) when + building the error code translation function for freetype 2. This + meant most errors came out as numbers. ================================================================= diff --git a/freetyp2.c b/freetyp2.c index 268c1333..f68ab73f 100644 --- a/freetyp2.c +++ b/freetyp2.c @@ -823,10 +823,10 @@ int i_ft2_has_chars(FT2_Fonthandle *handle, char const *text, int len, /* uses a method described in fterrors.h to build an error translation function */ -#undef __FT_ERRORS_H__ +#undef __FTERRORS_H__ #define FT_ERRORDEF(e, v, s) case v: i_push_error(code, s); return; -#define FT_ERROR_START_LIST -#define FT_ERROR_END_LIST +#define FT_ERROR_START_LIST +#define FT_ERROR_END_LIST /* =back