Addition conditions for UEFI environment under MSVC
diff --git a/library/md.c b/library/md.c
index 073f932..af66756 100644
--- a/library/md.c
+++ b/library/md.c
@@ -36,8 +36,9 @@
 
 #include <stdlib.h>
 
-#if defined(_MSC_VER) && !defined strcasecmp
-#define  snprintf  _stricmp
+#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
+    !defined(EFI32)
+#define strcasecmp  _stricmp
 #endif
 
 static const int supported_digests[] = {