Skip to content

Commit

Permalink
Use dllexport for static variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Apr 6, 2024
1 parent 4211547 commit 3deb6c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions include/fintamath/core/CoreUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#include <concepts>
#include <functional>

#ifdef _WIN32
#define FINTAMATH_API __declspec(dllexport)
#else
#define FINTAMATH_API
#endif

namespace fintamath {

template <typename From, typename To>
Expand Down
2 changes: 1 addition & 1 deletion include/fintamath/core/MathObjectBody.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public: \
} \
\
private: \
static constexpr detail::MathObjectClassImpl \
FINTAMATH_API static constexpr detail::MathObjectClassImpl \
objClass{#Class, Parent::getClassStatic()};

#define FINTAMATH_PARENT_CLASS_BODY(Class, Parent) \
Expand Down

0 comments on commit 3deb6c5

Please sign in to comment.