Skip to content

Commit e9189ce

Browse files
committed
Fix visibility issues
- Replace DYNAMIC_GRAPH_DLLEXPORT by DYNAMIC_GRAPH_DLLAPI - Remove an unnecessary attribute
1 parent b127c1f commit e9189ce

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

include/dynamic-graph/command-getter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace dynamicgraph {
5353
/// \li prototype of E::getParameter should be exactly as specified in this
5454
/// example.
5555
template <class E, typename T>
56-
class DYNAMIC_GRAPH_DLLEXPORT Getter : public Command {
56+
class DYNAMIC_GRAPH_DLLAPI Getter : public Command {
5757
public:
5858
/// Pointer to method that sets paramter of type T
5959
typedef T (E::*GetterMethod) () const;

include/dynamic-graph/command-setter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace dynamicgraph {
5353
/// \li prototype of E::setParameter should be exactly as specified in this
5454
/// example.
5555
template <class E, typename T>
56-
class DYNAMIC_GRAPH_DLLEXPORT Setter : public Command {
56+
class DYNAMIC_GRAPH_DLLAPI Setter : public Command {
5757
public:
5858
/// Pointer to method that sets paramter of type T
5959
typedef void (E::*SetterMethod) (const T&);

include/dynamic-graph/signal-cast-helper.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ namespace dynamicgraph
4848
: SignalCastRegisterer (typeid(T), disp, cast, trace)
4949
{}
5050

51-
DYNAMIC_GRAPH_DLLEXPORT
51+
DYNAMIC_GRAPH_DLLAPI
5252
static boost::any cast (std::istringstream& iss);
5353

54-
DYNAMIC_GRAPH_DLLEXPORT
54+
DYNAMIC_GRAPH_DLLAPI
5555
static void disp (const boost::any& object, std::ostream& os)
5656
{
5757
os << boost::any_cast<T> (object) << std::endl;
5858
}
5959

60-
DYNAMIC_GRAPH_DLLEXPORT
60+
DYNAMIC_GRAPH_DLLAPI
6161
static void trace (const boost::any& object, std::ostream& os)
6262
{
6363
disp(object,os);
@@ -156,15 +156,15 @@ public:
156156
static void disp( TYPE const& t,std::ostream& os ) DISP \
157157
static void trace( TYPE const& t,std::ostream& os ) TRACE \
158158
public: \
159-
DYNAMIC_GRAPH_DLLEXPORT \
159+
DYNAMIC_GRAPH_DLLAPI \
160160
static boost::any cast_( std::istringstream& stringValue ) { \
161161
return boost::any_cast<TYPE>(cast(stringValue)); \
162162
} \
163-
DYNAMIC_GRAPH_DLLEXPORT \
163+
DYNAMIC_GRAPH_DLLAPI \
164164
static void disp_( const boost::any& t,std::ostream& os ) { \
165165
disp(boost::any_cast<TYPE>(t), os); \
166166
} \
167-
DYNAMIC_GRAPH_DLLEXPORT \
167+
DYNAMIC_GRAPH_DLLAPI \
168168
static void trace_( const boost::any& t,std::ostream& os ) { \
169169
trace(boost::any_cast<TYPE>(t),os); \
170170
} \

include/dynamic-graph/value.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
namespace dynamicgraph {
2929
namespace command {
3030
class Value;
31-
class DYNAMIC_GRAPH_DLLEXPORT EitherType {
31+
class DYNAMIC_GRAPH_DLLAPI EitherType {
3232
public:
3333
EitherType(const Value& value);
3434
~EitherType();
@@ -44,7 +44,7 @@ namespace dynamicgraph {
4444
const Value* value_;
4545
};
4646

47-
class DYNAMIC_GRAPH_DLLEXPORT Value {
47+
class DYNAMIC_GRAPH_DLLAPI Value {
4848
public:
4949
enum Type {
5050
NONE,
@@ -93,9 +93,9 @@ namespace dynamicgraph {
9393
static std::string typeName(Type type);
9494

9595
/// Output in a stream
96-
DYNAMIC_GRAPH_DLLEXPORT friend std::ostream& operator<<(std::ostream& os, const Value& value);
96+
DYNAMIC_GRAPH_DLLAPI friend std::ostream& operator<<(std::ostream& os, const Value& value);
9797
public:
98-
DYNAMIC_GRAPH_DLLEXPORT friend class EitherType;
98+
friend class EitherType;
9999
bool boolValue() const;
100100
unsigned unsignedValue() const;
101101
int intValue() const;

0 commit comments

Comments
 (0)