We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strcmp()
f_lib
JL_LIBJULIA_DL_LIBNAME
1 parent d0478ca commit 0af737cCopy full SHA for 0af737c
src/runtime_ccall.cpp
@@ -30,16 +30,16 @@ extern "C"
30
void *jl_get_library_(const char *f_lib, int throw_err) JL_NOTSAFEPOINT
31
{
32
void *hnd;
33
+ if (f_lib == NULL)
34
+ return jl_RTLD_DEFAULT_handle;
35
#ifdef _OS_WINDOWS_
36
if (f_lib == JL_EXE_LIBNAME)
37
return jl_exe_handle;
38
if (f_lib == JL_LIBJULIA_INTERNAL_DL_LIBNAME)
39
return jl_libjulia_internal_handle;
- if (f_lib == JL_LIBJULIA_DL_LIBNAME)
40
+ if (strcmp(f_lib, JL_LIBJULIA_DL_LIBNAME) == 0)
41
return jl_libjulia_handle;
42
#endif
- if (f_lib == NULL)
- return jl_RTLD_DEFAULT_handle;
43
JL_LOCK_NOGC(&libmap_lock);
44
// This is the only operation we do on the map, which doesn't invalidate
45
// any references or iterators.
0 commit comments