diff --git a/include/dynamic-graph/python/interpreter.hh b/include/dynamic-graph/python/interpreter.hh
index 5d2e4f353a9920d77e5fc368b5ef5733697038d0..2c49695c5121e62841a16b4d119f4d23ed97ea69 100644
--- a/include/dynamic-graph/python/interpreter.hh
+++ b/include/dynamic-graph/python/interpreter.hh
@@ -41,7 +41,7 @@ namespace dynamicgraph {
       /// \brief Method to start python interperter.
       /// \param command string to execute
       /// Method deprecated, you *SHOULD* handle error messages.
-      std::string python( const std::string& command ) DYNAMIC_GRAPH_PYTHON_DEPRECATED;
+      DYNAMIC_GRAPH_PYTHON_DEPRECATED std::string python( const std::string& command );
 
       /// \brief Method to start python interperter.
       /// \param command string to execute, result, stdout, stderr strings