summaryrefslogtreecommitdiff
path: root/media-libs/t1lib/files/t1lib-5.1.2-c99.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/t1lib/files/t1lib-5.1.2-c99.patch')
-rw-r--r--media-libs/t1lib/files/t1lib-5.1.2-c99.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/t1lib/files/t1lib-5.1.2-c99.patch b/media-libs/t1lib/files/t1lib-5.1.2-c99.patch
new file mode 100644
index 000000000000..d1d3301fcc62
--- /dev/null
+++ b/media-libs/t1lib/files/t1lib-5.1.2-c99.patch
@@ -0,0 +1,15 @@
+https://src.fedoraproject.org/rpms/t1lib/blob/rawhide/f/t1lib-c99.patch
+
+Add missing parameter types for improved C99 compatibility: implicit
+ints are not part of C99.
+
+--- a/lib/type1/regions.c
++++ b/lib/type1/regions.c
+@@ -604,6 +604,7 @@
+ register struct region *R; /* region in which we are changing direction */
+ fractpel x,y; /* current beginning x,y */
+ fractpel dy; /* direction and magnitude of change in y */
++ int x2, y2;
+ {
+ register fractpel ymin,ymax; /* minimum and maximum Y since last call */
+ register fractpel x_at_ymin,x_at_ymax; /* their respective X's */