diff --git a/src/macro/Driver.cc b/src/macro/Driver.cc
index be996a16be0b361fabaadbeae2eeac396cbbb1ef..9ab8d6e2d1a8171370dabb3f370642e9fc593351 100644
--- a/src/macro/Driver.cc
+++ b/src/macro/Driver.cc
@@ -56,7 +56,7 @@ Driver::parse(const string &file_arg, const string &basename_arg, istream &modfi
               // If the input is an array. Issue #1578
               command_line_defines_with_endl << "@#define " << var << " = " << val << endl;
             else
-              command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << '"' << endl;
+              command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << R"(")" << endl;
           }
       Driver m(env, true);
       istream is(command_line_defines_with_endl.rdbuf());