diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-20 12:17:00 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-20 12:17:00 -0700 |
| commit | 357f087786cbd6516a38aff800cf9334bc5b85c5 (patch) | |
| tree | e3582c4e0f16927c4dc1c377cf789b469cde8196 /src/rt/rust_builtin.cpp | |
| parent | adeb7e77ccff938c0afb105a14a2ff4df4c7efc8 (diff) | |
| parent | 4d39253a9623ff30c27cee3c9770634a41f4412d (diff) | |
| download | rust-357f087786cbd6516a38aff800cf9334bc5b85c5.tar.gz rust-357f087786cbd6516a38aff800cf9334bc5b85c5.zip | |
Merge remote-tracking branch 'brson/io' into io-upstream
Conflicts: src/rt/rust_builtin.cpp src/rt/rustrt.def.in
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index e476fa0ad5e..8e494cb577b 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -925,6 +925,13 @@ rust_running_on_valgrind() { return RUNNING_ON_VALGRIND; } +extern int get_num_cpus(); + +extern "C" CDECL uintptr_t +rust_get_num_cpus() { + return get_num_cpus(); +} + // // Local Variables: // mode: C++ |
