From ba3d2558eff56f74a9c4625d5582bc78ee6a5e90 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 20 Jun 2009 11:58:54 +0000 Subject: 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 --- src/utils/utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/utils/utils.h') 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 +#endif + #ifndef max #define max(a,b) ((a)>(b)?(a):(b)) #endif -- cgit v1.2.3