summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-15 15:23:41 -0800
committerLei Zhang <thestig@chromium.org>2016-01-15 15:23:41 -0800
commit56461d66054c53fe3abc88208eaf5d84e80e6551 (patch)
tree302a46c005c30f199a165eb18e2b50a851826f0d
parent7a0f441e1410b3a0d97374c00c4007552d7dd27a (diff)
downloadpdfium-56461d66054c53fe3abc88208eaf5d84e80e6551.tar.xz
Fix the way FT headers are included
FreeType headers have to be included with macros defined in ftheaders.h. Not doing so breaks when the FreeType header location changes as was the case between FreeType 2.6.0 and 2.6.2. Patch by jshin@chromium.org BUG=pdfium:362 R=jshin@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/1587333002 .
-rw-r--r--core/include/fxge/fx_freetype.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/include/fxge/fx_freetype.h b/core/include/fxge/fx_freetype.h
index c7c8295961..5721784eb7 100644
--- a/core/include/fxge/fx_freetype.h
+++ b/core/include/fxge/fx_freetype.h
@@ -8,12 +8,13 @@
#define CORE_INCLUDE_FXGE_FX_FREETYPE_H_
#include <ft2build.h>
-#include <freetype.h>
-#include <ftglyph.h>
-#include <ftlcdfil.h>
-#include <ftmm.h>
-#include <ftoutln.h>
-#include <tttables.h>
+#include FT_FREETYPE_H
+#include FT_GLYPH_H
+#include FT_LCD_FILTER_H
+#include FT_MULTIPLE_MASTERS_H
+#include FT_OUTLINE_H
+#include FT_TRUETYPE_TABLES_H
+
#ifdef __cplusplus
extern "C" {
#endif