$if glibc {

pull/2543/head^2
Alexander Medvednikov 2019-10-25 18:32:44 +03:00
parent ef9cae6dc0
commit c7e6d379da
1 changed files with 9 additions and 1 deletions

View File

@ -73,6 +73,14 @@ fn (p mut Parser) comp_time() {
p.genln('#endif')
}
}
else if name == 'glibc' {
p.genln('#ifdef __GLIBC__')
p.check(.lcbr)
p.statements_no_rcbr()
if ! (p.tok == .dollar && p.peek() == .key_else) {
p.genln('#endif')
}
}
else {
println('Supported platforms:')
println(supported_platforms)