fix: build on osx.
This commit is contained in:
parent
6b8f8db4de
commit
77b001a845
1 changed files with 2 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ public:
|
|||
|
||||
#if defined (CR_WINDOWS)
|
||||
handle_ = LoadLibraryA (file.chars ());
|
||||
#elif defined (CR_OSX)
|
||||
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_LOCAL);
|
||||
#else
|
||||
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_DEEPBIND | RTLD_LOCAL);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue