Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.

This commit is contained in:
Tomas Lindquist Olsen
2008-09-02 23:10:12 +02:00
parent d6e7a65b69
commit f3b3db7fa9
10 changed files with 36 additions and 32 deletions

View File

@@ -15,6 +15,12 @@ if OS ~= "windows" then
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 @@ package.defines = {
"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" }