summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/nsf/memguard.c11
-rw-r--r--gst/nsf/types.h10
2 files changed, 17 insertions, 4 deletions
diff --git a/gst/nsf/memguard.c b/gst/nsf/memguard.c
index 77774a7f..10897d59 100644
--- a/gst/nsf/memguard.c
+++ b/gst/nsf/memguard.c
@@ -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:
diff --git a/gst/nsf/types.h b/gst/nsf/types.h
index 98794903..0355bf4d 100644
--- a/gst/nsf/types.h
+++ b/gst/nsf/types.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: