commit fe5a95ff877f1470536063a8a692510a1353abd5
parent 49de60fc5f80ef63facadedb5d50eab8e0194407
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Mon, 2 Jan 2017 12:21:47 -0800
src: fix up 2 parts of Windows preamble
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/inst_action.cc b/src/inst_action.cc
@@ -90,7 +90,7 @@ InstrumentAction::EndSourceFileAction()
<< " static void f(void)\n"
<< "#define INITIALIZER(f) INITIALIZER2_(f,\"_\")\n";
preamble << "INITIALIZER( init)\n"
- << "{"
+ << "{\n"
<< " citrun_node_add(citrun_major, citrun_minor, &_citrun);\n"
<< "}\n";
#else
@@ -99,7 +99,8 @@ InstrumentAction::EndSourceFileAction()
<< " citrun_node_add(citrun_major, citrun_minor, &_citrun);\n"
<< "}\n";
#endif
- preamble << "#ifdef __cplusplus\n"
+ preamble << "\n"
+ << "#ifdef __cplusplus\n"
<< "}\n"
<< "#endif\n";