shithub: freetype+ttf2subf

Download patch

ref: 5e4c2cb3bfdf883e5043b766eb9ee8ea00bc2b22
parent: 51179f0ae3a7bcb0d45c736df1189942e9fc99be
author: David Turner <[email protected]>
date: Mon May 22 12:25:14 EDT 2000

fixed some header files inclusions
added C++ stubs to public header files

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -28,6 +28,10 @@
 
 #include <freetype/freetype.h>
 
+#ifdef __cplusplus
+  extern "C" {
+#endif
+
   typedef enum {
 
     ft_glyph_type_none    = 0,
@@ -311,5 +315,9 @@
 
   EXPORT_DEF(void)  FT_Glyph_Get_Box( FT_Glyph  glyph,
                                       FT_BBox  *box );
+
+#ifdef __cplusplus
+  }
+#endif
 
 #endif /* FTGLYPH_H */
--- a/include/freetype/tttables.h
+++ b/include/freetype/tttables.h
@@ -21,6 +21,10 @@
 
 #include <freetype/freetype.h>
 
+#ifdef __cplusplus
+  extern "C" {
+#endif
+
   /*************************************************************************/
   /*                                                                       */
   /* <Struct>                                                              */
@@ -556,6 +560,10 @@
 
   EXPORT_DEF(void*)  FT_Get_Sfnt_Table( FT_Face      face,
                                         FT_Sfnt_Tag  tag );
+
+#ifdef __cplusplus
+  }
+#endif
 
 
 #endif /* TTTABLES_H */
--- a/src/sfnt/sfdriver.h
+++ b/src/sfnt/sfdriver.h
@@ -20,6 +20,7 @@
 #define SFDRIVER_H
 
 #include <freetype/internal/ftdriver.h>
+#include <freetype/internal/ftobjs.h>
 
   EXPORT_VAR(const FT_DriverInterface)  sfnt_driver_interface;