diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-14 10:39:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-14 10:39:14 +0200 |
commit | ac55a7a0a89fe9a1f39e33ee3445b644c68fa0c1 (patch) | |
tree | 8ef1ecfddf4b807209921f4c7a3c28fab77781b4 /odb/plugin.cxx | |
parent | 9d2ea69cfd7e71d0dfbc082ccc9a2d877f5451d5 (diff) |
Further work on build2 build, support for non-static plugin on Windows
Diffstat (limited to 'odb/plugin.cxx')
-rw-r--r-- | odb/plugin.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/odb/plugin.cxx b/odb/plugin.cxx index c046c2f..c0fee9f 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -38,7 +38,11 @@ using cutl::fs::invalid_path; typedef vector<path> paths; +#if defined(_WIN32) && !defined(ODB_STATIC_PLUGIN) +__declspec(dllexport) +#endif int plugin_is_GPL_compatible; + unique_ptr<options const> options_; paths profile_paths_; path file_; // File being compiled. @@ -290,7 +294,11 @@ static char const* const odb_version = ODB_COMPILER_VERSION_STR; typedef vector<string> strings; -extern "C" int +extern "C" +#if defined(_WIN32) && !defined(ODB_STATIC_PLUGIN) +__declspec(dllexport) +#endif +int plugin_init (plugin_name_args* plugin_info, plugin_gcc_version*) { int r (0); |