Skip to content

Commit 87650d0

Browse files
committed
---
yaml --- r: 214553 b: refs/heads/beta c: 9a2415b h: refs/heads/master i: 214551: c8c0860 v: v3
1 parent 325877f commit 87650d0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: f5222fb892be00f2b3e4dd8b83c5277e94ebbbba
26+
refs/heads/beta: 9a2415b82284f81d2fa7d6aa5096e6d2e5d83452
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/rt/rust_builtin.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
#include "valgrind/valgrind.h"
4646
#endif
4747

48+
#if defined(_MSC_VER)
49+
# define RUST_BUILTIN_API __declspec(dllexport)
50+
#else
51+
# define RUST_BUILTIN_API
52+
#endif
53+
4854
#ifndef _WIN32
4955
char*
5056
rust_list_dir_val(struct dirent* entry_ptr) {
@@ -129,6 +135,7 @@ get_num_cpus() {
129135
}
130136
#endif
131137

138+
RUST_BUILTIN_API
132139
uintptr_t
133140
rust_get_num_cpus() {
134141
return get_num_cpus();

0 commit comments

Comments
 (0)