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++"'.
This commit is contained in:
Werner Lemberg 2016-05-21 10:58:40 +02:00
parent 2a4c823f89
commit 6e80a098e7
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2016-05-21 Werner Lemberg <wl@gnu.org>
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 <madigens@gmail.com>
[truetype] Make TT_LOADER_SET_PP support subpixel hinting [3/3].

View File

@ -65,13 +65,15 @@ FT_BEGIN_HEADER
#ifdef __cplusplus
extern "C++"
extern "C++"
{
template <typename T> inline T*
cplusplus_typeof( T*,
void *v )
{
return static_cast <T*> ( v );
}
}
#define FT_ASSIGNP( p, val ) (p) = cplusplus_typeof( (p), (val) )