From 793da6bbe3eb324f10e6462ee9dd7db898af2230 Mon Sep 17 00:00:00 2001
From: Francois Keith <francois.keith@aist.go.jp>
Date: Thu, 1 Jul 2010 13:50:38 +0900
Subject: [PATCH] Use the correct macro for import/export in functions.h

---
 include/dynamic-graph/functions.h | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/include/dynamic-graph/functions.h b/include/dynamic-graph/functions.h
index 5a9286d2..6a1947d1 100644
--- a/include/dynamic-graph/functions.h
+++ b/include/dynamic-graph/functions.h
@@ -29,6 +29,7 @@
 /* DYNAMIC-GRAPH */
 #include <dynamic-graph/exception-factory.h>
 #include <dynamic-graph/interpreter.h>
+#include <dynamic-graph/dynamic-graph-api.h>
 
 /* --- STD --- */
 #include <string>
@@ -39,20 +40,6 @@
 #include <boost/function.hpp>
 #include <boost/bind.hpp>
 
-/* --------------------------------------------------------------------- */
-/* --- API ------------------------------------------------------------- */
-/* --------------------------------------------------------------------- */
-
-#if defined (WIN32) 
-#  if defined (shell_functions_EXPORTS)
-#    define SHELLFUNCTIONS_EXPORT __declspec(dllexport)
-#  else  
-#    define SHELLFUNCTIONS_EXPORT __declspec(dllimport)
-#  endif 
-#else
-#  define SHELLFUNCTIONS_EXPORT
-#endif
-
 /* --------------------------------------------------------------------- */
 /* --- CLASS ----------------------------------------------------------- */
 /* --------------------------------------------------------------------- */
@@ -68,7 +55,7 @@
   and user interaction commands such as display and beep commands.
   For more information, load the plugin and type help on a sot shell.
  */
-class SHELLFUNCTIONS_EXPORT ShellFunctions
+class DYNAMICGRAPH_EXPORT ShellFunctions
 {
  public:
 
-- 
GitLab