diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-20 11:58:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-20 11:58:54 +0000 |
commit | ba3d2558eff56f74a9c4625d5582bc78ee6a5e90 (patch) | |
tree | 79f3733cb05910b611285a10c65abb322e0a779f /src/utils | |
parent | 60fbc28f0cdbb2aa008ef5bfd40dccd9e54b5ada (diff) | |
download | libhubbub-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.h | 7 |
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 |