summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-02 14:32:40 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-02 14:32:40 +0000
commitb2fe4fbe5c941e5bccf865536b645725add5e8cf (patch)
tree71eeaf84276789ce1aff2ad6e6962aa83e46873f /src
parentba3d2558eff56f74a9c4625d5582bc78ee6a5e90 (diff)
downloadlibhubbub-b2fe4fbe5c941e5bccf865536b645725add5e8cf.tar.gz
libhubbub-b2fe4fbe5c941e5bccf865536b645725add5e8cf.tar.bz2
Better guard for the Norcroft hackery.
When building for Windows, replace strncasecmp with calls to _strnicmp svn path=/trunk/hubbub/; revision=8266
Diffstat (limited to 'src')
-rw-r--r--src/utils/utils.h16
1 files changed, 11 insertions, 5 deletions
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 <unixlib.h>
+#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 <unixlib.h>
+ #endif
+#endif
+
+#ifdef BUILD_TARGET_windows
+ #define strncasecmp _strnicmp
#endif
#ifndef max