diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c
index 7d12107ce3b8aecfd3c0e2b97f972e026876738f..ca75d7f5e0a25a9db3dc9b8290fae59012059fc2 100644
--- a/src/conio/ansi_cio.c
+++ b/src/conio/ansi_cio.c
@@ -1013,7 +1013,7 @@ int ansi_initciolib(long inmode)
 
 void ansi_suspend(void)
 {
-#if defined _WIN32
+#if defined _MSC_VER
 	// Prevents the wait for a key press when exit() is called and the stdin stream is flushed
 	_unlock_file(stdin);
 #endif