fixed typo in previous commit / fixed DEBUG compilation of pmwinmm.c and zlib

This commit is contained in:
Oliver Stöneberg 2013-02-01 08:31:09 +00:00
parent 55c4155a19
commit 582ec9dce4
4 changed files with 4 additions and 6 deletions

View File

@ -412,7 +412,7 @@ endif
# define MAME_DEBUG if we are a debugging build
ifdef DEBUG
DEFS += -DMAME_DEBUG -DEBUG -D_DEBUG
DEFS += -DMAME_DEBUG -DDEBUG -D_DEBUG
else
DEFS += -DNDEBUG
endif

View File

@ -1436,9 +1436,7 @@ void pm_winmm_term( void )
int i;
#ifdef DEBUG
char msg[PM_HOST_ERROR_MSG_LEN];
#endif
//int doneAny = 0;
#ifdef DEBUG
int doneAny = 0;
printf("pm_winmm_term called\n");
#endif
for (i = 0; i < pm_descriptor_index; i++) {

View File

@ -123,7 +123,7 @@ uLong ZEXPORT zlibCompileFlags()
int ZLIB_INTERNAL z_verbose = verbose;
void ZLIB_INTERNAL z_error (m)
char *m;
const char *m;
{
fprintf(stderr, "%s\n", m);
exit(1);

View File

@ -218,7 +218,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#ifdef DEBUG
# include <stdio.h>
extern int ZLIB_INTERNAL z_verbose;
extern void ZLIB_INTERNAL z_error OF((char *m));
extern void ZLIB_INTERNAL z_error OF((const char *m));
# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
# define Trace(x) {if (z_verbose>=0) fprintf x ;}
# define Tracev(x) {if (z_verbose>0) fprintf x ;}