diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index c576249e1f03c145857119d2d7fd50e157d4d981..8df4642c4bbcb18bd6cf49dfb319d1e351206aab 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -88,7 +88,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
     {
       error(StackTrace("@#include", e.what(), location));
     }
-  printLineInfo(output);
+  printEndLineInfo(output);
 }
 
 void
@@ -129,6 +129,7 @@ IncludePath::interpret([[maybe_unused]] ostream &output, Environment &env, vecto
     {
       error(StackTrace("@#includepath", e.what(), location));
     }
+  printEndLineInfo(output);
 }
 
 void
@@ -152,6 +153,7 @@ Define::interpret([[maybe_unused]] ostream &output, Environment &env, [[maybe_un
     {
       error(StackTrace("@#define", e.what(), location));
     }
+  printEndLineInfo(output);
 }
 
 void