Skip to content

Commit

Permalink
fix unix detect, #11
Browse files Browse the repository at this point in the history
  • Loading branch information
horasal committed Jul 7, 2014
1 parent e159283 commit 9977a1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/rock/middle/Version.ooc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ _addComplexBuiltinSpec: func (key, condition, prelude, afterword: String) {
_addBuiltinSpec("mingw64", "__MINGW64__")

// Apple
appleString := "__APPLE__) || defined(__MACH__"
appleString := "__APPLE__) && defined(__MACH__"
_addBuiltinSpec("apple", appleString)

applePrelude := "
Expand All @@ -117,10 +117,12 @@ _addComplexBuiltinSpec: func (key, condition, prelude, afterword: String) {
_addBuiltinSpec("openbsd", "__OpenBSD__")
_addBuiltinSpec("netbsd", "__NetBSD__")
_addBuiltinSpec("dragonfly", "__DragonFly__")
_addBuiltinSpec("bsd", "__unix__) || (defined(__APPLE__) && defined(__MACH__)")


// Other Unices
_addBuiltinSpec("solaris", "__sun) && defined(__SVR4")
_addBuiltinSpec("unix", "__unix__")
_addBuiltinSpec("unix", "__unix__ && !defined(__WIN32__")

// BeOSes
_addBuiltinSpec("beos", "__BEOS__")
Expand Down

0 comments on commit 9977a1b

Please sign in to comment.