[Box Backup-commit] COMMIT r1848 - box/chris/general/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Sep 21 20:47:07 BST 2007


Author: chris
Date: 2007-09-21 20:47:07 +0100 (Fri, 21 Sep 2007)
New Revision: 1848

Modified:
   box/chris/general/lib/win32/getopt_long.cxx
Log:
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.


Modified: box/chris/general/lib/win32/getopt_long.cxx
===================================================================
--- box/chris/general/lib/win32/getopt_long.cxx	2007-09-21 19:00:44 UTC (rev 1847)
+++ box/chris/general/lib/win32/getopt_long.cxx	2007-09-21 19:47:07 UTC (rev 1848)
@@ -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
 




More information about the Boxbackup-commit mailing list