summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-20 11:58:54 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-20 11:58:54 +0000
commitba3d2558eff56f74a9c4625d5582bc78ee6a5e90 (patch)
tree79f3733cb05910b611285a10c65abb322e0a779f /src/utils
parent60fbc28f0cdbb2aa008ef5bfd40dccd9e54b5ada (diff)
downloadlibhubbub-ba3d2558eff56f74a9c4625d5582bc78ee6a5e90.tar.gz
libhubbub-ba3d2558eff56f74a9c4625d5582bc78ee6a5e90.tar.bz2
Fix broken error checking and return in hubbub_parser_completed.
Avoid potentially broken passing of address of an enum where uint32_t * is expected. Pedantic casting for Norcroft. Particularly ugly #ifdef __CC_NORCROFT in utils.h to ensure we have a strncasecmp implementation with that compiler/libraries. svn path=/trunk/hubbub/; revision=7892
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/utils.h b/src/utils/utils.h
index d22a0eb..2c64281 100644
--- a/src/utils/utils.h
+++ b/src/utils/utils.h
@@ -8,6 +8,13 @@
#ifndef hubbub_utils_h_
#define hubbub_utils_h_
+/* If we're building with Norcroft, then we need to haul in
+ * unixlib.h from TCPIPLibs for useful things like strncasecmp
+ */
+#ifdef __CC_NORCROFT
+#include <unixlib.h>
+#endif
+
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif