diff --git a/include/dynamic-graph/dynamic-graph-api.h b/include/dynamic-graph/dynamic-graph-api.h
index 0e6f1c7ba2e021b1a3b5e3e899d4aac6b54a5809..4d0502ff6c1ca902a4d936abf4285f66d4f64ef5 100644
--- a/include/dynamic-graph/dynamic-graph-api.h
+++ b/include/dynamic-graph/dynamic-graph-api.h
@@ -6,7 +6,7 @@
 #define DYNAMICGRAPH_API_H
 
 #if defined (WIN32)
-#  ifdef dynamic_graph_EXPORT
+#  ifdef dynamic_graph_EXPORTS
 #    define DYNAMICGRAPH_EXPORT __declspec(dllexport)
 #  else
 #    define DYNAMICGRAPH_EXPORT __declspec(dllimport)