fix build on Solaris 10 and other platforms, where ferror is a just a macro default tip

Fri, 10 Jan 2025 15:03:58 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 10 Jan 2025 15:03:58 +0100
changeset 1118
9fa87f9882ba
parent 1117
54df904472b0

fix build on Solaris 10 and other platforms, where ferror is a just a macro

src/properties.c file | annotate | diff | comparison | revisions
--- a/src/properties.c	Thu Jan 09 22:37:10 2025 +0100
+++ b/src/properties.c	Fri Jan 10 15:03:58 2025 +0100
@@ -282,7 +282,7 @@
 ) {
     target->ptr = src->data_ptr;
     target->length = fread(src->data_ptr, 1, src->data_size, src->src);
-    return ferror(src->src);
+    return ferror((FILE*)src->src);
 }
 
 static int cx_properties_read_init_file(

mercurial