20 lines
601 B
Diff
20 lines
601 B
Diff
https://gitlab.kitware.com/vtk/vtk/-/issues/18033
|
|
--- VTK/ThirdParty/freetype/vtk_freetype.h.in.orig
|
|
+++ VTK/ThirdParty/freetype/vtk_freetype.h.in
|
|
@@ -20,6 +20,15 @@
|
|
|
|
#ifdef VTK_USE_SYSTEM_FREETYPE
|
|
# include <ft2build.h>
|
|
+/* FT_CALLBACK_DEF no longer exported since freetype-2.10.3 */
|
|
+/* has been moved to <freetype/internal/compiler-macros.h> */
|
|
+# ifndef FT_CALLBACK_DEF
|
|
+# ifdef __cplusplus
|
|
+# define FT_CALLBACK_DEF( x ) extern "C" x
|
|
+# else
|
|
+# define FT_CALLBACK_DEF( x ) static x
|
|
+# endif
|
|
+# endif /* FT_CALLBACK_DEF */
|
|
#else
|
|
# include <vtkfreetype/include/ft2build.h>
|
|
#endif
|