summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-10-17 12:51:40 +0000
committerChris Wilson <chris+github@qwirx.com>2007-10-17 12:51:40 +0000
commit4b5b0815af4f478c18ee6681fe013f5213c727de (patch)
tree52bf0c29b84f8b80bbb4264e72ff20dbfd394a28 /lib
parent8fc9ae21ff3ae1ab811e467fde6ab7ac0b7466f0 (diff)
Fix compilation on MinGW. Not yet actually used on MinGW due to the
file extension, but it might be soon, if the default implementation doesn't do what I want. (merges [1848])
Diffstat (limited to 'lib')
-rwxr-xr-xlib/win32/getopt_long.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/win32/getopt_long.cxx b/lib/win32/getopt_long.cxx
index c6800426..a24930aa 100755
--- a/lib/win32/getopt_long.cxx
+++ b/lib/win32/getopt_long.cxx
@@ -57,14 +57,17 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include "Box.h"
+// #include "Box.h"
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
-#ifdef _MSC_VER
+#include "getopt.h"
+
+#if defined _MSC_VER || defined __MINGW32__
#define REPLACE_GETOPT /* use this getopt as the system getopt(3) */
#endif