File tree Expand file tree Collapse file tree
include/cura-formulae-engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ target_link_libraries(cura-formulae-engine
8686target_compile_definitions (cura-formulae-engine
8787 INTERFACE
8888 CURA_FORMULA_VERSION_VERSION= "${CURA_FORMULA_VERSION_VERSION} "
89+ CURA_FORMULAE_ENGINE_EXPORT=1
8990)
9091
9192target_include_directories (
Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ #ifdef _WIN32
4+ # ifdef CURA_FORMULAE_ENGINE_EXPORT
5+ # define CURA_FORMULAE_ENGINE_API __declspec(dllexport)
6+ # else
7+ # define CURA_FORMULAE_ENGINE_API __declspec(dllimport)
8+ # endif
9+ #else
10+ # define CURA_FORMULAE_ENGINE_API
11+ #endif
Original file line number Diff line number Diff line change 11#pragma once
22
33#include " cura-formulae-engine/ast/ast.h"
4+ #include " cura-formulae-engine/config.h"
45
56namespace CuraFormulaeEngine ::env
67{
78
89/* *
910 * @brief The standard environment.
1011 */
11- extern const EnvironmentMap std_env;
12+ CURA_FORMULAE_ENGINE_API extern const EnvironmentMap std_env;
1213
1314} // namespace CuraFormulaeEngine::env
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ namespace CuraFormulaeEngine::env
3535/* *
3636 * @brief The standard environment.
3737 */
38- const EnvironmentMap std_env = []()
38+ CURA_FORMULAE_ENGINE_API const EnvironmentMap std_env = []()
3939{
4040 EnvironmentMap env;
4141
You can’t perform that action at this time.
0 commit comments