diff --git a/vpxdec.c b/vpxdec.c
index 6a1a0f5238eed026eeba5e0646ea93f8dfb94337..7401101f8bdeb782973482473f5cc88fa634941d 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -32,7 +32,7 @@
 #include "nestegg/include/nestegg/nestegg.h"
 
 #if CONFIG_OS_SUPPORT
-#if defined(_WIN32)
+#if defined(_MSC_VER)
 #include <io.h>
 #define snprintf _snprintf
 #define isatty   _isatty