vampirefrog / vgm2x

VGM file extraction tools, vgm2mid, vgm2opm etc.
GNU General Public License v3.0
8 stars 1 forks source link

vgm2opm: "wait" naming conflict on macOS #2

Closed OPNA2608 closed 1 year ago

OPNA2608 commented 1 year ago
cc -MMD -c vgm2opm.c -o vgm2opm.o -Wall -ggdb
vgm2opm.c:95:13: error: static declaration of 'wait' follows non-static declaration
static void wait(int samples, void *data_ptr) {
            ^
/nix/store/rsvg18bbsyc97kq9hh1gq08a73y9iyhx-Libsystem-1238.60.2/include/sys/wait.h:248:7: note: previous declaration is here
pid_t   wait(int *) __DARWIN_ALIAS_C(wait);
        ^
vgm2opm.c:131:20: warning: incompatible function pointer types assigning to 'void (*)(int, void *)' from 'pid_t (int *)' (aka 'int (int *)') [-Wincompatible-function-pointer-types]
                interpreter.wait = wait;
                                 ^ ~~~~
1 warning and 1 error generated.
vampirefrog commented 1 year ago

Thanks for reporting, try now

https://github.com/vampirefrog/vgm2x/commit/5128055ab2b356e173b53e2afd31202a59505a39

vampirefrog commented 1 year ago

I wish I had more time for this project and a few more