Skip to content

Commit 76516a9

Browse files
jviereckOlivier Stasse
authored andcommitted
Use SOT_CORE_DLLAPI
1 parent af1667e commit 76516a9

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

include/sot/core/exp-moving-avg.hh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/* --- INCLUDE --------------------------------------------------------- */
2525
/* --------------------------------------------------------------------- */
2626

27+
#include <sot/core/config.hh>
2728
#include <dynamic-graph/entity.h>
2829
#include <dynamic-graph/signal-ptr.h>
2930
#include <dynamic-graph/signal-time-dependent.h>
@@ -33,20 +34,6 @@ namespace dg = ::dynamicgraph;
3334
namespace dynamicgraph {
3435
namespace sot {
3536

36-
/* --------------------------------------------------------------------- */
37-
/* --- API ------------------------------------------------------------- */
38-
/* --------------------------------------------------------------------- */
39-
40-
#if defined (WIN32)
41-
# if defined (reader_EXPORTS)
42-
# define SOTEXPMOVINGAVG_EXPORT __declspec(dllexport)
43-
# else
44-
# define SOTEXPMOVINGAVG_EXPORT __declspec(dllimport)
45-
# endif
46-
#else
47-
# define SOTEXPMOVINGAVG_EXPORT
48-
#endif
49-
5037
/* --------------------------------------------------------------------- */
5138
/* --- TRACER ---------------------------------------------------------- */
5239
/* --------------------------------------------------------------------- */
@@ -55,7 +42,7 @@ using dynamicgraph::Entity;
5542
using dynamicgraph::SignalPtr;
5643
using dynamicgraph::SignalTimeDependent;
5744

58-
class SOTEXPMOVINGAVG_EXPORT ExpMovingAvg
45+
class SOT_CORE_DLLAPI ExpMovingAvg
5946
: public Entity
6047
{
6148
DYNAMIC_GRAPH_ENTITY_DECL();

include/sot/core/gradient-ascent.hh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/* --- INCLUDE --------------------------------------------------------- */
2525
/* --------------------------------------------------------------------- */
2626

27+
#include <sot/core/config.hh>
2728
#include <dynamic-graph/entity.h>
2829
#include <dynamic-graph/signal-ptr.h>
2930
#include <dynamic-graph/signal-time-dependent.h>
@@ -33,20 +34,6 @@ namespace dg = ::dynamicgraph;
3334
namespace dynamicgraph {
3435
namespace sot {
3536

36-
/* --------------------------------------------------------------------- */
37-
/* --- API ------------------------------------------------------------- */
38-
/* --------------------------------------------------------------------- */
39-
40-
#if defined (WIN32)
41-
# if defined (reader_EXPORTS)
42-
# define SOTGRADIENTASCENT_EXPORT __declspec(dllexport)
43-
# else
44-
# define SOTGRADIENTASCENT_EXPORT __declspec(dllimport)
45-
# endif
46-
#else
47-
# define SOTGRADIENTASCENT_EXPORT
48-
#endif
49-
5037
/* --------------------------------------------------------------------- */
5138
/* --- TRACER ---------------------------------------------------------- */
5239
/* --------------------------------------------------------------------- */
@@ -55,7 +42,7 @@ using dynamicgraph::Entity;
5542
using dynamicgraph::SignalPtr;
5643
using dynamicgraph::SignalTimeDependent;
5744

58-
class SOTGRADIENTASCENT_EXPORT GradientAscent
45+
class SOT_CORE_DLLAPI GradientAscent
5946
: public Entity
6047
{
6148
DYNAMIC_GRAPH_ENTITY_DECL();

0 commit comments

Comments
 (0)