1
0
mirror of synced 2026-04-24 19:40:49 +00:00

Fixed ifdefs for plugin unloading

This commit is contained in:
Clifford Wolf
2014-10-11 10:57:46 +02:00
parent 51b1824979
commit 53349fb634

View File

@@ -24,7 +24,7 @@
# include <readline/history.h>
#endif
#ifndef _WIN32
#ifdef YOSYS_ENABLE_PLUGINS
# include <dlfcn.h>
#endif
@@ -197,7 +197,7 @@ void yosys_shutdown()
}
#endif
#ifndef _WIN32
#ifdef YOSYS_ENABLE_PLUGINS
for (auto &it : loaded_plugins)
dlclose(it.second);
#endif