mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
disable $if for headers for now
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
module runtime
|
||||
|
||||
/*
|
||||
$if linux {
|
||||
#include <sys/sysinfo.h>
|
||||
fn C.get_nprocs() int
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
pub fn nr_cpus() int {
|
||||
$if linux {
|
||||
return C.get_nprocs()
|
||||
}
|
||||
//$if linux {
|
||||
//return C.get_nprocs()
|
||||
//}
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -4,10 +4,3 @@
|
||||
|
||||
module runtime
|
||||
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
fn C.get_nprocs() int
|
||||
|
||||
pub fn nr_cpus() int {
|
||||
return C.get_nprocs()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user