diff premake.lua @ 571:cbd6c8073a32

Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 02 Sep 2008 23:10:12 +0200
parents 1c7220171d41
children 8a8ee1f6b268
line wrap: on
line diff
--- a/premake.lua	Tue Sep 02 19:14:37 2008 +0200
+++ b/premake.lua	Tue Sep 02 23:10:12 2008 +0200
@@ -15,6 +15,12 @@
     end
 end
 
+-- are we on a Posix system?
+POSIX = 1
+if OS == "windows" then
+    POSIX = 0
+end
+
 -- D version - don't change these !!!
 DMDV1 = "1"
 
@@ -58,6 +64,7 @@
     "OPAQUE_VTBLS="..OPAQUE_VTBLS,
     "USE_BOEHM_GC="..USE_BOEHM_GC,
     "DMDV1="..DMDV1,
+    "POSIX="..POSIX,
 }
 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
 package.config.Debug.buildoptions = { "-g -O0" }