summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smooth/ftgrays.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index e5f36a054..00746c1a3 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1018,6 +1018,16 @@ typedef ptrdiff_t FT_PtrDist;
# define BEZIER_USE_DDA 0
#endif
+/* For now, the code that depends on BEZIER_USE_DDA requires
+ * FT_Int64 to be defined. If FT_LONG64 is not defined, meaning
+ * there is no 64-bit type available, disable it to avoid
+ * compilation errors. See for example
+ * https://gitlab.freedesktop.org/freetype/freetype/-/issues/1071
+ */
+#if !defined(FT_LONG64)
+# undef BEZIER_USE_DDA
+# define BEZIER_USE_DDA 0
+#endif
#if BEZIER_USE_DDA