replace strcasecmp() with strcmp(). this also simlifies MSVC support a bit
diff --git a/utils.c b/utils.c
index 2dbe2ee..cece416 100644
--- a/utils.c
+++ b/utils.c
@@ -14,7 +14,7 @@
int c = 0;
for(l = list; *l; c++, l++) {
- if (!strcasecmp(*l, s))
+ if (!strcmp(*l, s))
return c;
}
@@ -54,7 +54,7 @@
int i;
for (i = 0; i < max; i++) {
- if (!strcasecmp(map[i].name, name)) {
+ if (!strcmp(map[i].name, name)) {
return map[i].id;
}
}
diff --git a/utils.h b/utils.h
index 37c837e..d8bf4d6 100644
--- a/utils.h
+++ b/utils.h
@@ -7,16 +7,6 @@
#include "include/capstone.h"
#include "cs_priv.h"
-// strcasecmp() for MSVC
-#if !defined(__MINGW32__) && !defined(__MINGW64__) // this is not MingW
-#if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)
-
-// string.h
-#define strcasecmp _stricmp
-
-#endif // MSVC
-#endif // not MingW
-
// threshold number, so above this number will be printed in hexa mode
#define HEX_THRESHOLD 9