summaryrefslogtreecommitdiff
path: root/games/dungeon/patches/patch-aa
blob: c3c29597f6491fe6c4cb33a86ea939e71ede0f2d (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.3 2010/12/25 09:59:25 obache Exp $

Use an explicit 32-bit data type.

--- glkterm/glk.h.orig	2008-03-15 15:43:04.000000000 +0000
+++ glkterm/glk.h
@@ -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. */