shithub: freetype+ttf2subf

Download patch

ref: 6e80a098e787c82be6be69844f71cfe61a1daa5d
parent: 2a4c823f89cd9bd01cf9ccc8bcefc976ce06e32a
author: Werner Lemberg <[email protected]>
date: Sat May 21 06:58:40 EDT 2016

Work around a bug of the C 8.0.0.1 compiler on AIX 5.3 (#47955).

* include/freetype/internal/ftmemory.h (cplusplus_typeof): Use
braces for `extern "C++"'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-21  Werner Lemberg  <[email protected]>
+
+	Work around a bug of the C 8.0.0.1 compiler on AIX 5.3 (#47955).
+
+	* include/freetype/internal/ftmemory.h (cplusplus_typeof): Use
+	braces for `extern "C++"'.
+
 2016-05-17  Nikolaus Waxweiler  <[email protected]>
 
 	[truetype] Make TT_LOADER_SET_PP support subpixel hinting [3/3].
--- a/include/freetype/internal/ftmemory.h
+++ b/include/freetype/internal/ftmemory.h
@@ -65,7 +65,8 @@
 
 #ifdef __cplusplus
 
-  extern "C++"
+extern "C++"
+{
   template <typename T> inline T*
   cplusplus_typeof(        T*,
                     void  *v )
@@ -72,6 +73,7 @@
   {
     return static_cast <T*> ( v );
   }
+}
 
 #define FT_ASSIGNP( p, val )  (p) = cplusplus_typeof( (p), (val) )