From: kub Date: Wed, 29 Jul 2020 18:41:07 +0000 (+0200) Subject: configure, fix for newer gcc X-Git-Tag: v2.00~700 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97dd5cded0d9e4b0391054e7c839e368eabe2c3;p=picodrive.git configure, fix for newer gcc --- diff --git a/configure b/configure index 6860eb70..786d249a 100755 --- a/configure +++ b/configure @@ -278,7 +278,7 @@ esac # basic compiler test cat > $TMPC < $TMPC < - int main(void) { uncompress(0, 0, 0, 0); } + int main (int argc, char *argv[]) { uncompress(0, 0, 0, 0); } EOF compile_binary "$@" } @@ -298,7 +298,7 @@ check_libpng() { cat > $TMPC < - void main() { png_init_io(0, 0); } + int main (int argc, char *argv[]) { png_init_io(0, 0); } EOF # compile_binary compile_object @@ -309,7 +309,7 @@ check_oss() cat > $TMPC < #include - void main() { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } + int main (int argc, char *argv[]) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); } EOF compile_binary } @@ -318,7 +318,7 @@ check_alsa() { cat > $TMPC < - void main() { snd_pcm_open(0, 0, 0, 0); } + int main (int argc, char *argv[]) { snd_pcm_open(0, 0, 0, 0); } EOF compile_binary "$@" } @@ -327,7 +327,7 @@ check_sdl() { cat > $TMPC < - void main() { SDL_OpenAudio(0, 0); } + int main (int argc, char *argv[]) { SDL_OpenAudio(0, 0); } EOF compile_binary "$@" } @@ -336,7 +336,7 @@ check_libavcodec() { cat > $TMPC < - void main() { avcodec_decode_audio3(0, 0, 0, 0); } + int main (int argc, char *argv[]) { avcodec_decode_audio3(0, 0, 0, 0); } EOF compile_object "$@" }