diff lwar/main.c @ 386:221b5f58d8ad

Port remainder of tools to Windows Thanks to Erik G <erik@6809.org> for the patch. Quoth Erik: "As a thank you for putting up with my nonsense, I ported the remaining binaries. Although I'm not using them (yet), I did verify that they work and the changes are basically zero so I have confidence in them."
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 21:32:39 -0600
parents 4130ffdeb5c8
children 45df37e81741
line wrap: on
line diff
--- a/lwar/main.c	Mon Jul 13 21:26:34 2015 -0600
+++ b/lwar/main.c	Mon Jul 13 21:32:39 2015 -0600
@@ -27,13 +27,18 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include <lw_cmdline.h>
 #include <lw_version.h>
 
 #include "lwar.h"
 
+#ifdef _MSC_VER
+#include <lw_win.h>	// windows build
+#else
+#include <unistd.h>
+#endif
+
 // command line option handling
 #define PROGVER "lwar from " PACKAGE_STRING
 char *program_name;