From 57304aad01754625ca0f7e7fa92f3f86b9c3820c Mon Sep 17 00:00:00 2001
From: jarod42 <>
Date: Mon, 17 May 2004 16:49:15 +0000
Subject: [PATCH] getopt for MINGW

---
 src/stratagus/util.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stratagus/util.cpp b/src/stratagus/util.cpp
index 0a72afd7c..11d238844 100644
--- a/src/stratagus/util.cpp
+++ b/src/stratagus/util.cpp
@@ -224,7 +224,7 @@ void _hash_stat(void* tab, int size, struct hash_st* st)
 **  an 'argument required' error.
 */
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
 
 #include <io.h>
 #include <string.h>