Subject: | MSVC stricmp |
Attached patch fixes compilation on MSVC, which has no strcasecmp()
2005-11-17 20:23:40 rurban@cpan.org
* MSVC doesnt define strcasecmp, use stricmp instead
--- HTML-Strip-1.04/strip_html.c.orig 2005-01-24 17:42:04.000000000 +0100
+++ HTML-Strip-1.04/strip_html.c 2005-11-17 20:22:29.228125000 +0100
@@ -4,6 +4,9 @@
#include <string.h>
#include "strip_html.h"
+#ifdef _MSC_VER
+#define strcasecmp(a,b) stricmp(a,b)
+#endif
void
strip_html( Stripper * stripper, const char * raw, char * output ) {