Skip to content

Commit

Permalink
removed buidl plugin base on some cisual studion versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJerez committed May 2, 2020
1 parent ae1796e commit 2bc5e7e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sdk/dgPhysics/dgWorldPlugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ dgWorldPluginList::~dgWorldPluginList()

void dgWorldPluginList::LoadVisualStudioPlugins(const char* const plugInPath)
{
#ifdef DG_USE_PLUGINS
#if _MSC_VER > 1700
#if defined(DG_USE_PLUGINS) && defined(_MSC_VER)
char rootPathInPath[2048];
sprintf(rootPathInPath, "%s/*.dll", plugInPath);

Expand Down Expand Up @@ -98,14 +97,12 @@ void dgWorldPluginList::LoadVisualStudioPlugins(const char* const plugInPath)

_findclose(handle);
}
#endif
#endif
}

void dgWorldPluginList::LoadLinuxPlugins(const char* const plugInPath)
{
#ifdef DG_USE_PLUGINS
#if __linux__
#if defined(DG_USE_PLUGINS) && defined(__linux__)
char rootPathInPath[2048];
DIR* directory;
dirent* dirEntry;
Expand Down Expand Up @@ -142,7 +139,6 @@ void dgWorldPluginList::LoadLinuxPlugins(const char* const plugInPath)
}
closedir(directory);
}
#endif
#endif
}

Expand All @@ -158,7 +154,7 @@ void dgWorldPluginList::LoadPlugins(const char* const path)

void dgWorldPluginList::UnloadPlugins()
{
#ifdef DG_USE_PLUGINS
#if defined(DG_USE_PLUGINS)
#ifdef _MSC_VER
dgWorldPluginList& pluginsList = *this;
for (dgWorldPluginList::dgListNode* node = pluginsList.GetFirst(); node; node = node->GetNext()) {
Expand Down

0 comments on commit 2bc5e7e

Please sign in to comment.