Skip to content

Commit 447f294

Browse files
committed
---
yaml --- r: 208738 b: refs/heads/snap-stage3 c: 9a2415b h: refs/heads/master v: v3
1 parent 4430b0f commit 447f294

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f5222fb892be00f2b3e4dd8b83c5277e94ebbbba
4+
refs/heads/snap-stage3: 9a2415b82284f81d2fa7d6aa5096e6d2e5d83452
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)