]> granicus.if.org Git - yasm/commitdiff
* hamt.c: Add stopgap fix for GAP in cross-build situations by typedefing
authorPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 21:15:59 +0000 (21:15 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 21:15:59 +0000 (21:15 -0000)
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

libyasm/hamt.c

index f93c51b0e8601666e509cfa9b59e1e47c08143fb..9be2a6d6b16e6993f127f94d140521a9ec69bb9b 100644 (file)
 
 #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 */