mirror of https://github.com/YosysHQ/yosys.git
Fixed ifdefs for plugin unloading
This commit is contained in:
parent
51b1824979
commit
53349fb634
|
@ -24,7 +24,7 @@
|
||||||
# include <readline/history.h>
|
# include <readline/history.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifdef YOSYS_ENABLE_PLUGINS
|
||||||
# include <dlfcn.h>
|
# include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ void yosys_shutdown()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifdef YOSYS_ENABLE_PLUGINS
|
||||||
for (auto &it : loaded_plugins)
|
for (auto &it : loaded_plugins)
|
||||||
dlclose(it.second);
|
dlclose(it.second);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue