{
cat > $TMPC <<EOF
#include <png.h>
- void main() { png_init_io(0, 0); }
+ void main(void) { png_init_io(0, 0); }
EOF
# compile_binary
compile_object
cat > $TMPC <<EOF
#include <sys/soundcard.h>
#include <sys/ioctl.h>
- void main() { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); }
+ void main(void) { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); }
EOF
compile_binary
}
{
cat > $TMPC <<EOF
#include <alsa/asoundlib.h>
- void main() { snd_pcm_open(0, 0, 0, 0); }
+ void main(void) { snd_pcm_open(0, 0, 0, 0); }
EOF
compile_binary "$@"
}
{
cat > $TMPC <<EOF
#include <SDL.h>
- void main() { SDL_OpenAudio(0, 0); }
+ void main(void) { SDL_OpenAudio(0, 0); }
EOF
compile_binary "$@"
}
{
cat > $TMPC <<EOF
#include <libavcodec/avcodec.h>
- void main() { avcodec_decode_audio3(0, 0, 0, 0); }
+ void main(void) { avcodec_decode_audio3(0, 0, 0, 0); }
EOF
compile_object "$@"
}
fi
cat > $TMPC <<EOF
+#include <stdio.h>
void test(void *f, void *d) { fread(d, 1, 1, f); }
EOF
if compile_object -Wno-unused-result; then
static int HighCache2B[41*(TILE_ROWS+1)+1+1];\r
\r
unsigned short *PicoCramHigh=PicoMem.cram; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now)\r
-void (*PicoPrepareCram)()=0; // prepares PicoCramHigh for renderer to use\r
-\r
+void (*PicoPrepareCram)(void)=0; // prepares PicoCramHigh for renderer to use\r
\r
// stuff available in asm:\r
#ifdef _ASM_DRAW_C\r
// draw2.c\r
// stuff below is optional\r
extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now)\r
-extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use\r
+extern void (*PicoPrepareCram)(void); // prepares PicoCramHigh for renderer to use\r
\r
// pico.c (32x)\r
#ifndef NO_32X\r