diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-11 10:57:46 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-11 10:57:46 +0200 |
commit | 53349fb634e79641a7a728f6d030c5eda0702477 (patch) | |
tree | ff4504ffc3da0d84a5a9bf456c25574a03aeccf6 | |
parent | 51b1824979ab0dc1c1cc904abe85bf39e537e136 (diff) | |
download | yosys-53349fb634e79641a7a728f6d030c5eda0702477.tar.gz yosys-53349fb634e79641a7a728f6d030c5eda0702477.tar.bz2 yosys-53349fb634e79641a7a728f6d030c5eda0702477.zip |
Fixed ifdefs for plugin unloading
-rw-r--r-- | kernel/yosys.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 08f75df7b..f2492555e 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -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 |