diff lwasm/lwasm.h @ 361:4130ffdeb5c8

Add contributed support for building with Microsoft's compiler Thanks to Erik G <erik@6809.org> for various updates to allow building with Microsoft's compiler. These changes, in addition to some other generally good fixups from other commits, include: * move the version define to its own source file instead of as an option in Makefile. This is better anyway. * add some compatibilty stuff to lwlib This support is minimally invasive so it should continue to work. However, this is contributed code which I have no way to test.
author William Astle <lost@l-w.ca>
date Tue, 26 May 2015 17:53:51 -0600
parents 98f3e016cfd8
children 3f8abaac214c
line wrap: on
line diff
--- a/lwasm/lwasm.h	Tue May 26 17:51:00 2015 -0600
+++ b/lwasm/lwasm.h	Tue May 26 17:53:51 2015 -0600
@@ -22,10 +22,14 @@
 #ifndef ___lwasm_h_seen___
 #define ___lwasm_h_seen___
 
+#ifdef _MSC_VER
+#include "lw_win.h"	// windows build
+#endif
+
 #include <lw_expr.h>
 #include <lw_stringlist.h>
 #include <lw_stack.h>
-
+#include <lw_version.h>
 
 // these are allowed chars BELOW 0x80 for symbols
 // first is symbol start chars, second is anywhere in symbol