- Improved portability with Microsoft Visual C
diff --git a/library/md.c b/library/md.c
index 6348271..62c3e45 100644
--- a/library/md.c
+++ b/library/md.c
@@ -37,6 +37,10 @@
 #include <string.h>
 #include <stdlib.h>
 
+#if defined _MSC_VER && !defined strcasecmp
+#define strcasecmp _stricmp
+#endif
+
 static const int supported_digests[] = {
 
 #if defined(POLARSSL_MD2_C)