From 5e4c2cb3bfdf883e5043b766eb9ee8ea00bc2b22 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 22 May 2000 16:25:14 +0000 Subject: [PATCH] fixed some header files inclusions added C++ stubs to public header files --- include/freetype/ftglyph.h | 8 ++++++++ include/freetype/tttables.h | 8 ++++++++ src/sfnt/sfdriver.h | 1 + 3 files changed, 17 insertions(+) diff --git a/include/freetype/ftglyph.h b/include/freetype/ftglyph.h index 853dc256f..44d9ae227 100644 --- a/include/freetype/ftglyph.h +++ b/include/freetype/ftglyph.h @@ -28,6 +28,10 @@ #include +#ifdef __cplusplus + extern "C" { +#endif + typedef enum { ft_glyph_type_none = 0, @@ -312,4 +316,8 @@ EXPORT_DEF(void) FT_Glyph_Get_Box( FT_Glyph glyph, FT_BBox *box ); +#ifdef __cplusplus + } +#endif + #endif /* FTGLYPH_H */ diff --git a/include/freetype/tttables.h b/include/freetype/tttables.h index 6bbe87009..ac6a9513c 100644 --- a/include/freetype/tttables.h +++ b/include/freetype/tttables.h @@ -21,6 +21,10 @@ #include +#ifdef __cplusplus + extern "C" { +#endif + /*************************************************************************/ /* */ /* */ @@ -557,6 +561,10 @@ EXPORT_DEF(void*) FT_Get_Sfnt_Table( FT_Face face, FT_Sfnt_Tag tag ); +#ifdef __cplusplus + } +#endif + #endif /* TTTABLES_H */ diff --git a/src/sfnt/sfdriver.h b/src/sfnt/sfdriver.h index a29a81c8d..24a2646a7 100644 --- a/src/sfnt/sfdriver.h +++ b/src/sfnt/sfdriver.h @@ -20,6 +20,7 @@ #define SFDRIVER_H #include +#include EXPORT_VAR(const FT_DriverInterface) sfnt_driver_interface;