From 6e80a098e787c82be6be69844f71cfe61a1daa5d Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 21 May 2016 10:58:40 +0200 Subject: [PATCH] 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++"'. --- ChangeLog | 7 +++++++ include/freetype/internal/ftmemory.h | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb6ee881c..130f5e7c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2016-05-21 Werner Lemberg + + 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 [truetype] Make TT_LOADER_SET_PP support subpixel hinting [3/3]. diff --git a/include/freetype/internal/ftmemory.h b/include/freetype/internal/ftmemory.h index 3157dafa6..8c06fc21a 100644 --- a/include/freetype/internal/ftmemory.h +++ b/include/freetype/internal/ftmemory.h @@ -65,13 +65,15 @@ FT_BEGIN_HEADER #ifdef __cplusplus - extern "C++" +extern "C++" +{ template inline T* cplusplus_typeof( T*, void *v ) { return static_cast ( v ); } +} #define FT_ASSIGNP( p, val ) (p) = cplusplus_typeof( (p), (val) )