From 9900b8e70686b2725063c1ec8904960a6f60ccf1 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Wed, 19 Jun 2013 11:57:08 -0700 Subject: [PATCH] 64-bitness fixes from Bill Lash --- src/blorb/blorb.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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. */ -- 2.34.1