See the attached three patches:
#1: fix mixed declarations and code in win32_ioctl.c: lib/driver/MSWindows/win32_ioctl.c: In function 'audio_play_msf_win32ioctl': lib/driver/MSWindows/win32_ioctl.c:193:3: warning: ISO C90 forbids mixed declarations and code #2: fix 'strndup shadows a built-in function' warnings: if strndup() is not available, the build log is plagued with the following warnings: lib/driver/cdio_private.h:46:21: warning: declaration of 'strndup' shadows a built-in function So, rename the replacement inline strndup to libcdio_strdup, and define strndup as libcdio_strndup. #3: do not use sleep() for windows. _sleep() has long been deprecated and no longer prototyped in stdlib.h, despite the fact that msvcrt.dll still exports it. therefore, undefine HAVE_SLEEP when targeting windows, use Sleep win32 api function instead. Regards. -- O.S.
