diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 9d9f94c684b822b6f53140f2e0528dda81f1f4d0..0aa2d437d18e51c72165e8c3979287f35de1eb73 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -86,7 +86,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
     {
       error(StackTrace("@#include", e.what(), location));
     }
-  printLineInfo(output);
+  printEndLineInfo(output);
 }
 
 void
@@ -127,6 +127,7 @@ IncludePath::interpret(ostream &output, Environment &env, vector<filesystem::pat
     {
       error(StackTrace("@#includepath", e.what(), location));
     }
+  printEndLineInfo(output);
 }
 
 void
@@ -150,6 +151,7 @@ Define::interpret(ostream &output, Environment &env, vector<filesystem::path> &p
     {
       error(StackTrace("@#define", e.what(), location));
     }
+  printEndLineInfo(output);
 }
 
 void