Unverified Commit 8984ab5c authored by Benedikt Rips's avatar Benedikt Rips
Browse files

epson-workforce-635-nx625-series: fix GCC 14 build

parent 852ff1d9
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
index 6e621c8..a5ca797 100644
--- a/src/raster_to_epson.c
+++ b/src/raster_to_epson.c
@@ -438,14 +438,14 @@ static int print_page (void)
 					break;
 				}
 
-				if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, &nraster)) {
+				if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, (int *) &nraster)) {
 					error  = 1;
 					break;
 				}
 			}
 
 			// flushing page
-			eps_raster_print(raster_h, NULL, 0, 0, &nraster);
+			eps_raster_print(raster_h, NULL, 0, 0, (int *) &nraster);
 
 			bAbort = (error) ? TRUE : FALSE;
 			if (epcgEndPage (bAbort)) {
+24 −0
Original line number Diff line number Diff line
diff --git a/src/pagemanager/pagemanager.c b/src/pagemanager/pagemanager.c
index 029e6d3..2881585 100644
--- a/src/pagemanager/pagemanager.c
+++ b/src/pagemanager/pagemanager.c
@@ -23,6 +23,7 @@
 #include "debuglog.h"
 #include "memory.h"
 #include "raster.h"
+#include "raster-helper.h"
 #include "pagemanager.h"
 
 extern int JobCanceled;
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
index 6e621c8..6eea77c 100644
--- a/src/raster_to_epson.c
+++ b/src/raster_to_epson.c
@@ -36,6 +36,7 @@
 #include "raster.h"
 #include "memory.h"
 #include "raster_to_epson.h"
+#include "raster-helper.h"
 #include "pagemanager.h"
 #include "filter_option.h"
 
+5 −0
Original line number Diff line number Diff line
@@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
    done
  '';

  patches = [
    ./eps_raster_print-cast.patch
    ./include-raster-helper.patch
  ];

  preConfigure = ''
    chmod u+x configure
  '';