diff --git a/src/julia.h b/src/julia.h index 8cd070885c6fd..c16f9000fd89e 100644 --- a/src/julia.h +++ b/src/julia.h @@ -1515,6 +1515,7 @@ JL_DLLEXPORT int jl_is_debugbuild(void) JL_NOTSAFEPOINT; JL_DLLEXPORT jl_sym_t *jl_get_UNAME(void) JL_NOTSAFEPOINT; JL_DLLEXPORT jl_sym_t *jl_get_ARCH(void) JL_NOTSAFEPOINT; JL_DLLEXPORT jl_value_t *jl_get_libllvm(void) JL_NOTSAFEPOINT; +extern JL_DLLIMPORT int jl_n_threads; // environment entries JL_DLLEXPORT jl_value_t *jl_environ(int i); diff --git a/src/threading.c b/src/threading.c index 8f8dd45c28507..80722323c9367 100644 --- a/src/threading.c +++ b/src/threading.c @@ -221,7 +221,6 @@ jl_get_ptls_states_func jl_get_ptls_states_getter(void) } #endif -JL_DLLEXPORT int jl_n_threads; jl_ptls_t *jl_all_tls_states JL_GLOBALLY_ROOTED; // return calling thread's ID