diff --git a/src/sound/ogg.cpp b/src/sound/ogg.cpp
index 64b16cbb1..64f1449ee 100644
--- a/src/sound/ogg.cpp
+++ b/src/sound/ogg.cpp
@@ -44,7 +44,9 @@
 #ifdef BSD
 #include <inttypes.h>
 #else
+#ifdef _MSC_VER
 #include <windows.h>
+#endif
 #include <stdint.h>
 #endif // BSD