More portability changes, and some bugfixes found through that.

This commit is contained in:
waltje
2017-10-27 20:54:31 -04:00
parent 77d695f430
commit 15538f1441
10 changed files with 45 additions and 18 deletions

View File

@@ -9,7 +9,7 @@
* Implementation of the IDE emulation for hard disks and ATAPI
* CD-ROM devices.
*
* Version: @(#)hdc_ide.c 1.0.16 2017/10/26
* Version: @(#)hdc_ide.c 1.0.17 2017/10/27
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -2012,7 +2012,12 @@ void callbackide(int ide_board)
return;
case WIN_SET_FEATURES:
if ((ide->type == IDE_NONE)/* || ide_drive_is_cdrom(ide)*/)
#if 1
/* To avoid Clang warning. --FvK */
if (ide->type == IDE_NONE)
#else
if ((ide->type == IDE_NONE) || ide_drive_is_cdrom(ide))
#endif
{
goto abort_cmd;
}