From: David Griffith Date: Wed, 19 Jun 2013 18:57:08 +0000 (-0700) Subject: 64-bitness fixes from Bill Lash X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=9900b8e70686b2725063c1ec8904960a6f60ccf1;p=liskon_frotz.git 64-bitness fixes from Bill Lash --- diff --git a/src/blorb/blorb.h b/src/blorb/blorb.h index 6c02dbc..cac93e5 100644 --- a/src/blorb/blorb.h +++ b/src/blorb/blorb.h @@ -18,7 +18,13 @@ /* #define BLORB_BIG_ENDIAN */ #define BLORB_LITTLE_ENDIAN -typedef unsigned long uint32; +#include +#if UINT_MAX == (1UL<<32)-1UL +typedef unsigned int uint32; +#else +typedef unsigned long uint32; +#endif + typedef unsigned short uint16; /* End of things you have to edit. */