[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix warnings : hw/fmopl.[ch] (BUILD_Y8950 is not de
From: |
Sylvain Petreolle |
Subject: |
[Qemu-devel] [PATCH] Fix warnings : hw/fmopl.[ch] (BUILD_Y8950 is not defined) |
Date: |
Mon, 10 Nov 2008 14:21:27 +0000 (GMT) |
Signed-off by: Sylvain Petreolle<address@hidden>
Index: hw/fmopl.c
===================================================================
--- hw/fmopl.c (révision 5668)
+++ hw/fmopl.c (copie de travail)
@@ -813,7 +813,7 @@
}
}
return;
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
case 0x06: /* Key Board OUT */
if(OPL->type&OPL_TYPE_KEYBOARD)
{
@@ -1098,7 +1098,7 @@
}
#endif /* (BUILD_YM3812 || BUILD_YM3526) */
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length)
{
@@ -1190,7 +1190,7 @@
CH->SLOT[s].evs = 0;
}
}
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
if(OPL->type&OPL_TYPE_ADPCM)
{
YM_DELTAT *DELTAT = OPL->deltat;
@@ -1217,7 +1217,7 @@
/* allocate OPL state space */
state_size = sizeof(FM_OPL);
state_size += sizeof(OPL_CH)*max_ch;
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
if(type&OPL_TYPE_ADPCM) state_size+= sizeof(YM_DELTAT);
#endif
/* allocate memory block */
@@ -1227,7 +1227,7 @@
memset(ptr,0,state_size);
OPL = (FM_OPL *)ptr; ptr+=sizeof(FM_OPL);
OPL->P_CH = (OPL_CH *)ptr; ptr+=sizeof(OPL_CH)*max_ch;
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
if(type&OPL_TYPE_ADPCM) OPL->deltat = (YM_DELTAT *)ptr;
ptr+=sizeof(YM_DELTAT);
#endif
/* set channel state pointer */
@@ -1291,7 +1291,7 @@
OPL->UpdateHandler = UpdateHandler;
OPL->UpdateParam = param;
}
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
void OPLSetPortHandler(FM_OPL *OPL,OPL_PORTHANDLER_W
PortHandler_w,OPL_PORTHANDLER_R PortHandler_r,int param)
{
OPL->porthandler_w = PortHandler_w;
Index: hw/fmopl.h
===================================================================
--- hw/fmopl.h (révision 5668)
+++ hw/fmopl.h (copie de travail)
@@ -29,7 +29,7 @@
#endif
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
#include "ymdeltat.h"
#endif
@@ -112,7 +112,7 @@
int max_ch; /* maximum channel */
/* Rythm sention */
UINT8 rythm; /* Rythm mode , key flag */
-#if BUILD_Y8950
+#ifdef BUILD_Y8950
/* Delta-T ADPCM unit (Y8950) */
YM_DELTAT *deltat; /* DELTA-T ADPCM */
#endif
- [Qemu-devel] [PATCH] Fix warnings : hw/fmopl.[ch] (BUILD_Y8950 is not defined),
Sylvain Petreolle <=