summaryrefslogtreecommitdiff
path: root/gme
diff options
context:
space:
mode:
authorGravatar waker <waker@xps.localdomain>2009-07-06 23:33:57 +0200
committerGravatar waker <waker@xps.localdomain>2009-07-06 23:33:57 +0200
commitccd602384f5a8d84359ba7f20de15fc8142d777f (patch)
tree59932e5defc79f17496c7901953657ed3daa2163 /gme
parent55cba1db948c3d6650a0d4162ffcd09ca73fe3a1 (diff)
fixed gme on x86_64
Diffstat (limited to 'gme')
-rw-r--r--gme/Blip_Buffer.cpp2
-rw-r--r--gme/Hes_Cpu.h2
-rw-r--r--gme/blargg_common.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/gme/Blip_Buffer.cpp b/gme/Blip_Buffer.cpp
index 6304cedb..fd014e4b 100644
--- a/gme/Blip_Buffer.cpp
+++ b/gme/Blip_Buffer.cpp
@@ -1,7 +1,7 @@
// Blip_Buffer 0.4.1. http://www.slack.net/~ant/
#include "Blip_Buffer.h"
-
+#include "blargg_common.h"
#include <assert.h>
#include <limits.h>
#include <string.h>
diff --git a/gme/Hes_Cpu.h b/gme/Hes_Cpu.h
index 9cb8b006..c49570d0 100644
--- a/gme/Hes_Cpu.h
+++ b/gme/Hes_Cpu.h
@@ -8,7 +8,7 @@
typedef blargg_long hes_time_t; // clock cycle count
typedef unsigned hes_addr_t; // 16-bit address
-enum { future_hes_time = LONG_MAX / 2 + 1 };
+#define future_hes_time (LONG_MAX / 2 + 1)
class Hes_Cpu {
public:
diff --git a/gme/blargg_common.h b/gme/blargg_common.h
index e48d6469..56ef653d 100644
--- a/gme/blargg_common.h
+++ b/gme/blargg_common.h
@@ -15,6 +15,9 @@
#ifndef BLARGG_COMMON_H
#define BLARGG_COMMON_H
+#undef LONG_MAX
+#define LONG_MAX 0x7fffffff
+
// STATIC_CAST(T,expr): Used in place of static_cast<T> (expr)
#ifndef STATIC_CAST
#define STATIC_CAST(T,expr) ((T) (expr))