diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-10-17 12:51:40 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-10-17 12:51:40 +0000 |
commit | 4b5b0815af4f478c18ee6681fe013f5213c727de (patch) | |
tree | 52bf0c29b84f8b80bbb4264e72ff20dbfd394a28 /lib/win32 | |
parent | 8fc9ae21ff3ae1ab811e467fde6ab7ac0b7466f0 (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/win32')
-rwxr-xr-x | lib/win32/getopt_long.cxx | 7 |
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
|