* include/freetype/internal/ftmemory.h (FT_MEM_DUP): Fix g++ error.

This commit is contained in:
Alexei Podtelezhnikov 2024-05-22 21:08:34 -04:00
parent 5f131cfd20
commit 42d406ab04
1 changed files with 5 additions and 2 deletions

View File

@ -371,8 +371,11 @@ extern "C++"
#define FT_STRDUP( dst, str ) \
FT_MEM_SET_ERROR( FT_MEM_STRDUP( dst, str ) )
#define FT_MEM_DUP( dst, address, size ) \
(dst) = ft_mem_dup( memory, (address), (FT_ULong)(size), &error )
#define FT_MEM_DUP( dst, address, size ) \
FT_ASSIGNP_INNER( dst, ft_mem_dup( memory, \
(address), \
(FT_ULong)(size), \
&error ) )
#define FT_DUP( dst, address, size ) \
FT_MEM_SET_ERROR( FT_MEM_DUP( dst, address, size ) )