Files

44 lines
1.4 KiB
Diff
Raw Permalink Normal View History

2025-03-12 00:29:40 -05:00
Fix implicit int errors.
--- configure.orig 2025-03-12 00:24:41.000000000 -0500
+++ configure 2025-03-12 00:23:26.000000000 -0500
@@ -711,7 +711,7 @@
cat > conftest.$ac_ext <<EOF
#line 713 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(void){return 0;}
EOF
if { (eval echo configure:717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
--- libhfs/configure.orig 2025-03-12 00:24:41.000000000 -0500
+++ libhfs/configure 2025-03-12 00:23:26.000000000 -0500
@@ -657,7 +657,7 @@
cat > conftest.$ac_ext <<EOF
#line 659 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(void){return 0;}
EOF
if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
@@ -1280,7 +1280,7 @@
#include <stdlib.h>
#include <string.h>
-main()
+int main(void)
{
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
--- librsrc/configure.orig 1998-11-02 17:34:06.000000000 -0600
+++ librsrc/configure 2025-03-12 00:24:23.000000000 -0500
@@ -657,7 +657,7 @@
cat > conftest.$ac_ext <<EOF
#line 659 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(void){return 0;}
EOF
if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes