diff --git a/include/keystone/keystone.h b/include/keystone/keystone.h
index 5f1e1b2ac7f2ad382ab3fb6ddf86d6b6af8f1ef4..9e7f35570230052f5468d5084b277e4493936690 100644
--- a/include/keystone/keystone.h
+++ b/include/keystone/keystone.h
@@ -13,14 +13,10 @@ extern "C" {
 #include <stdio.h>
 #include <stdbool.h>
 
-#ifdef _MSC_VER
+#ifdef _MSC_VER     // MSVC compiler
 #pragma warning(disable:4201)
 #pragma warning(disable:4100)
-#ifdef KEYSTONE_SHARED
 #define KEYSTONE_EXPORT __declspec(dllexport)
-#else    // defined(KEYSTONE_STATIC)
-#define KEYSTONE_EXPORT
-#endif
 #else
 #ifdef __GNUC__
 #define KEYSTONE_EXPORT __attribute__((visibility("default")))