Skip to content

Commit

Permalink
use ifdef
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Aug 15, 2024
1 parent 26425b8 commit 6c2b0dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ DYNLIB_HANDLE glPluginHandle;

void loadGLPlugin(const std::string &_pluginName)
{
#ifdef _WIN32
glPluginHandle = DYNLIB_LOAD(_pluginName.c_str());
#else
glPluginHandle = dlopen(_pluginName.c_str(), RTLD_LAZY | RTLD_LOCAL);
#endif
DLL_START_PLUGIN pFunc = (DLL_START_PLUGIN)DYNLIB_GETSYM(
glPluginHandle, "dllStartPlugin");
pFunc();
Expand Down

0 comments on commit 6c2b0dc

Please sign in to comment.