diff options
author | glewis <glewis@FreeBSD.org> | 2003-08-14 17:14:16 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-08-14 17:14:16 +0000 |
commit | 07c118c128afad449c1f06d7f6605d3a3ac42bd7 (patch) | |
tree | ee36e08149ed4b4bc88da5476b402afc24cd3018 /games/moria/files | |
parent | c6b4aa727c87dd17e1624863d544d14a48650c99 (diff) | |
download | FreeBSD-ports-07c118c128afad449c1f06d7f6605d3a3ac42bd7.zip FreeBSD-ports-07c118c128afad449c1f06d7f6605d3a3ac42bd7.tar.gz |
. Use our own fixed width types (from <sys/types.h>) instead of assuming
the width of standard types (e.g. "long" is 32 bits). Should help
things work on 64-bit platforms and fix problems with prices in shops.
Obtained from: NetBSD
Diffstat (limited to 'games/moria/files')
-rw-r--r-- | games/moria/files/patch-source::types.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games/moria/files/patch-source::types.h b/games/moria/files/patch-source::types.h new file mode 100644 index 0000000..5c3f89b --- /dev/null +++ b/games/moria/files/patch-source::types.h @@ -0,0 +1,23 @@ +--- source/types.h.orig Tue Aug 12 10:04:48 2003 ++++ source/types.h Tue Aug 12 10:06:27 2003 +@@ -6,11 +6,20 @@ + not for profit purposes provided that this copyright and statement are + included in all such copies. */ + ++#ifdef __FreeBSD__ ++#include <sys/types.h> ++typedef u_int32_t int32u; ++typedef int32_t int32; ++typedef u_int16_t int16u; ++typedef int16_t int16; ++typedef u_int8_t int8u; ++#else + typedef unsigned long int32u; + typedef long int32; + typedef unsigned short int16u; + typedef short int16; + typedef unsigned char int8u; ++#endif + /* some machines will not accept 'signed char' as a type, and some accept it + but still treat it like an unsigned character, let's just avoid it, + any variable which can ever hold a negative value must be 16 or 32 bits */ |