From b2fe4fbe5c941e5bccf865536b645725add5e8cf Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 2 Jul 2009 14:32:40 +0000 Subject: Better guard for the Norcroft hackery. When building for Windows, replace strncasecmp with calls to _strnicmp svn path=/trunk/hubbub/; revision=8266 --- src/utils/utils.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/utils/utils.h') diff --git a/src/utils/utils.h b/src/utils/utils.h index 2c64281..e949bd1 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -8,11 +8,17 @@ #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 +#ifdef BUILD_TARGET_riscos + /* 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 +#endif + +#ifdef BUILD_TARGET_windows + #define strncasecmp _strnicmp #endif #ifndef max -- cgit v1.2.3