vtk/vtk-freetype-2.10.3-replace-FT_CALLBACK_DEF.patch
Stefan Brüns e8ae3d366c Accepting request 843011 from home:namtrac:branches:science
- Add vtk-freetype-2.10.3-replace-FT_CALLBACK_DEF.patch to fix
  compilation with FreeType 2.10.3+

OBS-URL: https://build.opensuse.org/request/show/843011
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=167
2020-10-22 17:34:26 +00:00

38 lines
1.3 KiB
Diff

Index: VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx
===================================================================
--- VTK-9.0.1.orig/Rendering/FreeType/vtkFreeTypeTools.cxx
+++ VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx
@@ -378,7 +378,7 @@ FTC_CMapCache* vtkFreeTypeTools::GetCMap
}
//----------------------------------------------------------------------------
-FT_CALLBACK_DEF(FT_Error)
+extern "C" FT_Error
vtkFreeTypeToolsFaceRequester(
FTC_FaceID face_id, FT_Library lib, FT_Pointer request_data, FT_Face* face)
{
Index: VTK-9.0.1/Rendering/FreeTypeFontConfig/vtkFontConfigFreeTypeTools.cxx
===================================================================
--- VTK-9.0.1.orig/Rendering/FreeTypeFontConfig/vtkFontConfigFreeTypeTools.cxx
+++ VTK-9.0.1/Rendering/FreeTypeFontConfig/vtkFontConfigFreeTypeTools.cxx
@@ -26,10 +26,8 @@
vtkStandardNewMacro(vtkFontConfigFreeTypeTools);
-namespace
-{
// The FreeType face requester callback:
-FT_CALLBACK_DEF(FT_Error)
+extern "C" FT_Error
vtkFontConfigFreeTypeToolsFaceRequester(
FTC_FaceID face_id, FT_Library lib, FT_Pointer request_data, FT_Face* face)
{
@@ -71,7 +69,6 @@ vtkFontConfigFreeTypeToolsFaceRequester(
return static_cast<FT_Error>(0);
}
-} // end anon namespace
void vtkFontConfigFreeTypeTools::PrintSelf(ostream& os, vtkIndent indent)
{