Hi, while the entire repo built successfully for quite some time on Apple Silicon, the compile of the core fails here (below). All other parts of mupen64plus still build fine. Cheers!
../../src/device/dd/dd_controller.c:511:30: error: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cycles += 4825 abs(track - old_track);
^
../../src/device/dd/dd_controller.c:511:30: note: include the header or explicitly provide a declaration for 'abs'
../../src/device/dd/dd_controller.c:511:30: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
cycles += 4825 abs(track - old_track);
^
../../src/device/dd/dd_controller.c:511:30: note: remove the call to 'abs' since unsigned values cannot be negative
cycles += 4825 abs(track - old_track);
^~~
../../src/device/dd/dd_controller.c:546:30: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
cycles += 4825 abs(track - old_track);
^
../../src/device/dd/dd_controller.c:546:30: note: remove the call to 'abs' since unsigned values cannot be negative
cycles += 4825 * abs(track - old_track);
^~~
2 warnings and 1 error generated.
make: *** [_obj/device/dd/dd_controller.o] Error 1
Hi, while the entire repo built successfully for quite some time on Apple Silicon, the compile of the core fails here (below). All other parts of mupen64plus still build fine. Cheers!
../../src/device/dd/dd_controller.c:511:30: error: call to undeclared library function 'abs' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cycles += 4825 abs(track - old_track); ^ ../../src/device/dd/dd_controller.c:511:30: note: include the header or explicitly provide a declaration for 'abs'
../../src/device/dd/dd_controller.c:511:30: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
cycles += 4825 abs(track - old_track);
^
../../src/device/dd/dd_controller.c:511:30: note: remove the call to 'abs' since unsigned values cannot be negative
cycles += 4825 abs(track - old_track);
^~~
../../src/device/dd/dd_controller.c:546:30: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
cycles += 4825 abs(track - old_track);
^
../../src/device/dd/dd_controller.c:546:30: note: remove the call to 'abs' since unsigned values cannot be negative
cycles += 4825 * abs(track - old_track);
^~~
2 warnings and 1 error generated.
make: *** [_obj/device/dd/dd_controller.o] Error 1