Skip to content

Commit

Permalink
🏁 explicitly export global data symbols
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer committed Apr 30, 2024
1 parent 56b1891 commit efe17fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/mqt-core/dd/RealNumber.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "dd/DDDefinitions.hpp"
#include "mqt_core_export.h"

#include <istream>
#include <limits>
Expand Down Expand Up @@ -230,11 +231,11 @@ struct RealNumber {
namespace constants {
// NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
/// The constant zero.
extern RealNumber zero;
MQT_CORE_EXPORT extern RealNumber zero;
/// The constant one.
extern RealNumber one;
MQT_CORE_EXPORT extern RealNumber one;
/// The constant sqrt(2)/2 = 1/sqrt(2).
extern RealNumber sqrt2over2;
MQT_CORE_EXPORT extern RealNumber sqrt2over2;
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)

/**
Expand Down

0 comments on commit efe17fa

Please sign in to comment.