summaryrefslogtreecommitdiff
path: root/games/dungeon/patches/patch-aa
blob: 0d9c5284f5025041c9cc2bee0b98bec58e32b248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.2 2010/12/25 09:48:09 obache Exp $

Use an explicit 32-bit data type.

--- ../glkterm/glk.h.orig	2009-11-20 14:08:17.000000000 -0800
+++ ../glkterm/glk.h	2009-11-20 13:06:19.000000000 -0800
@@ -17,8 +17,15 @@
 /* You may have to edit the definition of glui32 to make sure it's really a
     32-bit unsigned integer type, and glsi32 to make sure it's really a
     32-bit signed integer type. If they're not, horrible things will happen. */
-typedef unsigned long glui32;
-typedef signed long glsi32;
+/*
+ * typedef unsigned long glui32;
+ * typedef signed long glsi32;
+ */
+
+#include <stdint.h>
+
+typedef uint32_t glui32;
+typedef int32_t glsi32;
 
 /* These are the compile-time conditionals that reveal various Glk optional
     modules. */