diff --git a/src/plugins/projectexplorer/taskwindow.h b/src/plugins/projectexplorer/taskwindow.h
index e2f02245933e11c83b25c3723ce04d92307ffa3b..596a8089d8bc545d28284ca945bfb59c31946521 100644
--- a/src/plugins/projectexplorer/taskwindow.h
+++ b/src/plugins/projectexplorer/taskwindow.h
@@ -50,7 +50,7 @@ class TaskWindowContext;
 
 } // namespace Internal
 
-struct Task {
+struct PROJECTEXPLORER_EXPORT Task {
     enum TaskType {
         Unknown,
         Error,