qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sylvain Petreolle <spetreolle@yahoo.fr>
To: Qemu list <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Fix warnings : hw/fmopl.[ch] (BUILD_Y8950 is not defined)
Date: Mon, 10 Nov 2008 14:21:27 +0000 (GMT)	[thread overview]
Message-ID: <292017.13943.qm@web24506.mail.ird.yahoo.com> (raw)

Signed-off by: Sylvain Petreolle<spetreolle@yahoo.fr>

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


             reply	other threads:[~2008-11-10 14:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 14:21 Sylvain Petreolle [this message]
2008-11-10 21:08 ` [Qemu-devel] [PATCH] Fix warnings : hw/fmopl.[ch] (BUILD_Y8950 is not defined) malc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=292017.13943.qm@web24506.mail.ird.yahoo.com \
    --to=spetreolle@yahoo.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).