From: Peter Johnson Date: Sun, 5 Mar 2006 21:15:59 +0000 (-0000) Subject: * hamt.c: Add stopgap fix for GAP in cross-build situations by typedefing X-Git-Tag: v0.5.0rc2~5^2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5ae8cdbef581cb5260693cee6f138ea5bfc95cd;p=yasm * hamt.c: Add stopgap fix for GAP in cross-build situations by typedefing uintptr_t to unsigned long for the build platform (instead of trying to pull in the host platform's _stdint.h). svn path=/trunk/yasm/; revision=1404 --- diff --git a/libyasm/hamt.c b/libyasm/hamt.c index f93c51b0..9be2a6d6 100644 --- a/libyasm/hamt.c +++ b/libyasm/hamt.c @@ -35,7 +35,11 @@ #include "coretype.h" #include "hamt.h" +#ifdef HAVE_CONFIG_H #include "_stdint.h" /* for uintptr_t */ +#else +typedef unsigned long uintptr_t; /* for build platform only (FIXME) */ +#endif typedef struct HAMTEntry { STAILQ_ENTRY(HAMTEntry) next; /* next hash table entry */