Commit f7f73bdd authored by Francois Keith's avatar Francois Keith Committed by Francois Keith
Browse files

Win32: Correct the API of exception-python.hh

parent ff3ce1eb
......@@ -20,16 +20,27 @@
# include <string>
# include <dynamic-graph/fwd.hh>
# include <dynamic-graph/dynamic-graph-api.h>
# include <dynamic-graph/exception-abstract.h>
// Depending on whether one is building or using the
// library define DLLAPI to import or export.
# if defined (WIN32)
# if defined (wrap_EXPORTS)
# define WRAP_DLLAPI __declspec(dllexport)
# else
# define WRAP_DLLAPI __declspec(dllimport)
# endif
# else
# define WRAP_DLLAPI
# endif
namespace dynamicgraph {
namespace python {
/// \ingroup error
///
/// \brief Generic error class.
class DYNAMIC_GRAPH_DLLAPI ExceptionPython : public ExceptionAbstract
class WRAP_DLLAPI ExceptionPython : public ExceptionAbstract
{
public:
enum ErrorCodeEnum
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment