diff --git a/configure.ac b/configure.ac index 98a73f2..56bc8ce 100644 --- a/configure.ac +++ b/configure.ac @@ -1466,27 +1466,27 @@ then [WINE_CHECK_SONAME(freetype,FT_Init_FreeType,[ft_lib=yes],[ft_lib=no],[$FREETYPE_LIBS]) if test "$ft_lib" = "yes" then - AC_CHECK_HEADERS(ft2build.h \ - freetype/freetype.h \ - freetype/ftglyph.h \ - freetype/fttypes.h \ - freetype/tttables.h \ - freetype/ftsnames.h \ - freetype/ttnameid.h \ - freetype/ftoutln.h \ - freetype/ftwinfnt.h \ - freetype/ftmodapi.h \ - freetype/ftlcdfil.h,,, + AC_CHECK_HEADERS(ft2build.h \ + freetype.h \ + ftglyph.h \ + fttypes.h \ + tttables.h \ + ftsnames.h \ + ttnameid.h \ + ftoutln.h \ + ftwinfnt.h \ + ftmodapi.h \ + ftlcdfil.h,,, [#ifdef HAVE_FT2BUILD_H # include #endif]) - AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include -#include ]])],[AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1, - [Define if you have the header file.]) + AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include +#include ]])],[AC_DEFINE(HAVE_FTTRIGON_H, 1, + [Define if you have the header file.]) wine_cv_fttrigon=yes],[wine_cv_fttrigon=no]) - AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include ]) - dnl Check that we have at least freetype/freetype.h - if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" + AC_CHECK_TYPES([FT_TrueTypeEngineType],,,[#include ]) + dnl Check that we have at least freetype.h + if test "$ac_cv_header_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" then AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed]) else @@ -1496,9 +1496,9 @@ then FREETYPE_LIBS="" fi]) fi -WINE_ERROR_WITH(freetype,[test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes], +WINE_ERROR_WITH(freetype,[test "x$ac_cv_header_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes], [FreeType ${notice_platform}development files not found. Fonts will not be built.]) -test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no} +test "x$ac_cv_header_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no} dnl **** Check for parport (currently Linux only) **** AC_CACHE_CHECK([for parport header/ppdev.h], ac_cv_c_ppdev, diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index fb4f2af..517f985 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -98,38 +98,38 @@ WINE_DEFAULT_DEBUG_CHANNEL(font); #ifdef HAVE_FT2BUILD_H #include #endif -#ifdef HAVE_FREETYPE_FREETYPE_H -#include +#ifdef HAVE_FREETYPE_H +#include #endif -#ifdef HAVE_FREETYPE_FTGLYPH_H -#include +#ifdef HAVE_FTGLYPH_H +#include #endif -#ifdef HAVE_FREETYPE_TTTABLES_H -#include +#ifdef HAVE_TTTABLES_H +#include #endif -#ifdef HAVE_FREETYPE_FTTYPES_H -#include +#ifdef HAVE_FTTYPES_H +#include #endif -#ifdef HAVE_FREETYPE_FTSNAMES_H -#include +#ifdef HAVE_FTSNAMES_H +#include #endif -#ifdef HAVE_FREETYPE_TTNAMEID_H -#include +#ifdef HAVE_TTNAMEID_H +#include #endif -#ifdef HAVE_FREETYPE_FTOUTLN_H -#include +#ifdef HAVE_FTOUTLN_H +#include #endif -#ifdef HAVE_FREETYPE_FTTRIGON_H -#include +#ifdef HAVE_FTTRIGON_H +#include #endif -#ifdef HAVE_FREETYPE_FTWINFNT_H -#include +#ifdef HAVE_FTWINFNT_H +#include #endif -#ifdef HAVE_FREETYPE_FTMODAPI_H -#include +#ifdef HAVE_FTMODAPI_H +#include #endif -#ifdef HAVE_FREETYPE_FTLCDFIL_H -#include +#ifdef HAVE_FTLCDFIL_H +#include #endif #ifndef HAVE_FT_TRUETYPEENGINETYPE @@ -186,7 +186,7 @@ MAKE_FUNCPTR(FT_Vector_Transform); MAKE_FUNCPTR(FT_Vector_Unit); static FT_Error (*pFT_Outline_Embolden)(FT_Outline *, FT_Pos); static FT_TrueTypeEngineType (*pFT_Get_TrueType_Engine_Type)(FT_Library); -#ifdef HAVE_FREETYPE_FTLCDFIL_H +#ifdef HAVE_FTLCDFIL_H static FT_Error (*pFT_Library_SetLcdFilter)(FT_Library, FT_LcdFilter); #endif @@ -924,7 +924,7 @@ static BOOL is_hinting_enabled(void) static BOOL is_subpixel_rendering_enabled( void ) { -#ifdef HAVE_FREETYPE_FTLCDFIL_H +#ifdef HAVE_FTLCDFIL_H static int enabled = -1; if (enabled == -1) { @@ -3918,7 +3918,7 @@ static BOOL init_freetype(void) /* Don't warn if these ones are missing */ pFT_Outline_Embolden = wine_dlsym(ft_handle, "FT_Outline_Embolden", NULL, 0); pFT_Get_TrueType_Engine_Type = wine_dlsym(ft_handle, "FT_Get_TrueType_Engine_Type", NULL, 0); -#ifdef HAVE_FREETYPE_FTLCDFIL_H +#ifdef HAVE_FTLCDFIL_H pFT_Library_SetLcdFilter = wine_dlsym(ft_handle, "FT_Library_SetLcdFilter", NULL, 0); #endif @@ -6706,7 +6706,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format, case WINE_GGO_HBGR_BITMAP: case WINE_GGO_VRGB_BITMAP: case WINE_GGO_VBGR_BITMAP: -#ifdef HAVE_FREETYPE_FTLCDFIL_H +#ifdef HAVE_FTLCDFIL_H { switch (ft_face->glyph->format) {