diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-11-12 06:21:17 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-11-18 16:17:43 -0800 |
| commit | f4c222f7a3f21fd3fdc5df28f344988c103d17fa (patch) | |
| tree | 8e2e309c3a897d0e9b2718894f5e11f1f001396c /src/rt/rust_builtin.cpp | |
| parent | 3d569df41de221ce5b0ffd385caaa9fd6d5fb2ff (diff) | |
| download | rust-f4c222f7a3f21fd3fdc5df28f344988c103d17fa.tar.gz rust-f4c222f7a3f21fd3fdc5df28f344988c103d17fa.zip | |
rt: Namespace all C functions under rust_
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 4c1c6a7202a..7d75d557bf7 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -168,7 +168,7 @@ extern "C" CDECL FILE* rust_get_stderr() {return stderr;} #if defined(__WIN32__) extern "C" CDECL void -get_time(int64_t *sec, int32_t *nsec) { +rust_get_time(int64_t *sec, int32_t *nsec) { FILETIME fileTime; GetSystemTimeAsFileTime(&fileTime); @@ -187,7 +187,7 @@ get_time(int64_t *sec, int32_t *nsec) { } #else extern "C" CDECL void -get_time(int64_t *sec, int32_t *nsec) { +rust_get_time(int64_t *sec, int32_t *nsec) { #ifdef __APPLE__ struct timeval tv; gettimeofday(&tv, NULL); @@ -205,7 +205,7 @@ get_time(int64_t *sec, int32_t *nsec) { const int64_t ns_per_s = 1000000000LL; extern "C" CDECL void -precise_time_ns(uint64_t *ns) { +rust_precise_time_ns(uint64_t *ns) { #ifdef __APPLE__ uint64_t time = mach_absolute_time(); |
