cc28cd1
diff -up mathgl-8.0.1/src/prc.cpp.libharu2.4 mathgl-8.0.1/src/prc.cpp
cc28cd1
--- mathgl-8.0.1/src/prc.cpp.libharu2.4	2022-01-11 13:48:53.000000000 -0700
cc28cd1
+++ mathgl-8.0.1/src/prc.cpp	2022-10-05 21:10:18.640050969 -0600
cc28cd1
@@ -36,6 +36,7 @@
cc28cd1
 #include <hpdf.h>
cc28cd1
 #include <hpdf_u3d.h>
cc28cd1
 #include <hpdf_annotation.h>
cc28cd1
+#include <hpdf_version.h>
cc28cd1
 #endif // MGL_HAVE_PDF
cc28cd1
 
cc28cd1
 
cc28cd1
@@ -959,7 +960,12 @@ void MGL_EXPORT mgl_write_prc(HMGL gr, c
cc28cd1
 		HPDF_U3D_SetDefault3DView(u3d, "DefaultView");
cc28cd1
 
cc28cd1
 		//	Create annotation
cc28cd1
-		annot = HPDF_Page_Create3DAnnot (page, rect, u3d );
cc28cd1
+		annot
cc28cd1
+#if HPDF_VERSION_ID >= 20400
cc28cd1
+                = HPDF_Page_Create3DAnnot (page, rect, HPDF_FALSE, HPDF_FALSE, u3d, NULL);
cc28cd1
+#else
cc28cd1
+                = HPDF_Page_Create3DAnnot (page, rect, u3d );
cc28cd1
+#endif
cc28cd1
 
cc28cd1
 		//  Enable toolbar
cc28cd1
 		HPDF_Dict action = (HPDF_Dict)HPDF_Dict_GetItem (annot, "3DA", HPDF_OCLASS_DICT);