diff lwlink/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 b138b4005125
line wrap: on
line diff
--- a/lwlink/main.c	Mon Jul 13 21:26:34 2015 -0600
+++ b/lwlink/main.c	Mon Jul 13 21:32:39 2015 -0600
@@ -25,7 +25,6 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h>
 #include <string.h>
 
 #include <lw_cmdline.h>
@@ -33,6 +32,12 @@
 
 #include "lwlink.h"
 
+#ifdef _MSC_VER
+#include <lw_win.h>	// windows build
+#else
+#include <unistd.h>
+#endif
+
 char *program_name;
 
 // command line option handling