summaryrefslogtreecommitdiff
path: root/development/4th/01-if_for_64bit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/4th/01-if_for_64bit.patch')
-rw-r--r--development/4th/01-if_for_64bit.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/development/4th/01-if_for_64bit.patch b/development/4th/01-if_for_64bit.patch
new file mode 100644
index 0000000000..51aa0d8a11
--- /dev/null
+++ b/development/4th/01-if_for_64bit.patch
@@ -0,0 +1,19 @@
+diff -Nur 4th-3.61.2-unix/sources/4th.h 4th-3.61.2-unix.new/sources/4th.h
+--- 4th-3.61.2-unix/sources/4th.h 2009-11-20 23:52:02.000000000 +0000
++++ 4th-3.61.2-unix.new/sources/4th.h 2011-08-15 19:55:51.674547949 +0000
+@@ -60,11 +60,11 @@
+ #define M4DUPNAM 26
+ #define M4CABORT 27
+
+-#define CELL_MIN LONG_MIN
+-#define CELL_MAX LONG_MAX
+-#define strtocell(a,b,c) strtol((a),(b),(c))
++#define CELL_MIN INT_MIN
++#define CELL_MAX INT_MAX
++#define strtocell(a,b,c) (int)strtol((a),(b),(c))
+
+-typedef long cell;
++typedef int cell;
+ typedef unsigned char unit;
+
+ typedef struct {