mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
fixed typo in previous commit / fixed DEBUG compilation of pmwinmm.c and zlib
This commit is contained in:
parent
55c4155a19
commit
582ec9dce4
2
makefile
2
makefile
@ -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
|
||||
|
@ -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++) {
|
||||
|
@ -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);
|
||||
|
@ -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 ;}
|
||||
|
Loading…
Reference in New Issue
Block a user