Commit 67635491 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/nsf/: Unbreak compilation by disabling memguard and doing some dirty hack...

gst/nsf/: Unbreak compilation by disabling memguard and doing some dirty hack fixes to make it compile on 64bits.

Original commit message from CVS:
* gst/nsf/memguard.c: (_my_free):
* gst/nsf/types.h:
Unbreak compilation by disabling memguard and doing some dirty hack
fixes to make it compile on 64bits.
parent a4d0dace
2008-03-25 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/nsf/memguard.c: (_my_free):
* gst/nsf/types.h:
Unbreak compilation by disabling memguard and doing some dirty hack
fixes to make it compile on 64bits.
2008-03-25 Sebastian Dröge <slomo@circular-chaos.org>
 
Patch by: Andreas Henriksson <andreas at fatal dot set>
......
......@@ -270,7 +270,8 @@ _my_free (void **data)
char fail[256];
if (NULL == data || NULL == *data
|| 0xFFFFFFFF == (uint32) * data || 0xFFFFFFFF == (uint32) data) {
|| (void *) 0xFFFFFFFF == (void *) *data
|| (void *) 0xFFFFFFFF == (void *) data) {
#ifdef NOFRENDO_DEBUG
sprintf (fail, "free: attempted to free NULL pointer at line %d of %s\n",
line, file);
......@@ -354,7 +355,13 @@ mem_checkblocks (void)
/*
** $Log$
** Revision 1.3 2008/03/25 15:56:11 slomo
** Revision 1.4 2008/03/25 16:58:53 wtay
** * gst/nsf/memguard.c: (_my_free):
** * gst/nsf/types.h:
** Unbreak compilation by disabling memguard and doing some dirty hack
** fixes to make it compile on 64bits.
**
** Revision 1.3 2008-03-25 15:56:11 slomo
** Patch by: Andreas Henriksson <andreas at fatal dot set>
** * gst/nsf/Makefile.am:
** * gst/nsf/dis6502.h:
......
......@@ -90,7 +90,7 @@ typedef uint8 boolean;
exit(1);\
}
#else /* Not debugging */
#include "memguard.h"
#include <stdlib.h>
#define ASSERT(expr)
#define ASSERT_MSG(msg)
#endif
......@@ -99,7 +99,13 @@ typedef uint8 boolean;
/*
** $Log$
** Revision 1.4 2008/03/25 15:56:12 slomo
** Revision 1.5 2008/03/25 16:58:53 wtay
** * gst/nsf/memguard.c: (_my_free):
** * gst/nsf/types.h:
** Unbreak compilation by disabling memguard and doing some dirty hack
** fixes to make it compile on 64bits.
**
** Revision 1.4 2008-03-25 15:56:12 slomo
** Patch by: Andreas Henriksson <andreas at fatal dot set>
** * gst/nsf/Makefile.am:
** * gst/nsf/dis6502.h:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment