1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

FreeBSD support

This commit is contained in:
Alexander Medvednikov
2019-07-15 17:24:40 +02:00
parent 92fb9c8b94
commit 7c6f59afa6
3 changed files with 11 additions and 2 deletions

View File

@@ -2616,6 +2616,7 @@ fn os_name_to_ifdef(name string) string {
case 'windows': return '_WIN32'
case 'mac': return '__APPLE__'
case 'linux': return '__linux__'
case 'freebsd': return '__FreeBSD__'
}
panic('bad os ifdef name "$name"')
return ''