haiku: adding support to v #1
parent
19b4cf66ac
commit
f496c1b27b
|
@ -296,6 +296,7 @@ fn os_name_to_ifdef(name string) string {
|
||||||
'android'{ return '__BIONIC__' }
|
'android'{ return '__BIONIC__' }
|
||||||
'js' {return '_VJS' }
|
'js' {return '_VJS' }
|
||||||
'solaris'{ return '__sun' }
|
'solaris'{ return '__sun' }
|
||||||
|
'haiku' { return '__haiku__' }
|
||||||
}
|
}
|
||||||
verror('bad os ifdef name "$name"')
|
verror('bad os ifdef name "$name"')
|
||||||
return ''
|
return ''
|
||||||
|
@ -309,6 +310,7 @@ fn platform_postfix_to_ifdefguard(name string) string {
|
||||||
'_lin.v', '_linux.v' { '#ifdef __linux__' }
|
'_lin.v', '_linux.v' { '#ifdef __linux__' }
|
||||||
'_mac.v', '_darwin.v' { '#ifdef __APPLE__' }
|
'_mac.v', '_darwin.v' { '#ifdef __APPLE__' }
|
||||||
'_solaris.v' { '#ifdef __sun' }
|
'_solaris.v' { '#ifdef __sun' }
|
||||||
|
'_haiku.v' { '#ifdef __haiku__' }
|
||||||
else {
|
else {
|
||||||
|
|
||||||
//verror('bad platform_postfix "$name"')
|
//verror('bad platform_postfix "$name"')
|
||||||
|
|
|
@ -26,7 +26,7 @@ enum BuildMode {
|
||||||
|
|
||||||
const (
|
const (
|
||||||
supported_platforms = ['windows', 'mac', 'linux', 'freebsd', 'openbsd',
|
supported_platforms = ['windows', 'mac', 'linux', 'freebsd', 'openbsd',
|
||||||
'netbsd', 'dragonfly', 'android', 'js', 'solaris']
|
'netbsd', 'dragonfly', 'android', 'js', 'solaris', 'haiku']
|
||||||
)
|
)
|
||||||
|
|
||||||
enum OS {
|
enum OS {
|
||||||
|
@ -40,6 +40,7 @@ enum OS {
|
||||||
js // TODO
|
js // TODO
|
||||||
android
|
android
|
||||||
solaris
|
solaris
|
||||||
|
haiku
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Pass {
|
enum Pass {
|
||||||
|
|
Loading…
Reference in New Issue