summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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