diff --git a/src/bin/libint/context.cc b/src/bin/libint/context.cc index b80b60b6e..96a3fa530 100644 --- a/src/bin/libint/context.cc +++ b/src/bin/libint/context.cc @@ -207,7 +207,7 @@ std::string CppCodeContext::code_postfix() const { if (cparams()->use_C_linking()) { - return "#ifdef __cplusplus\n};\nLIBINT_PRAGMA_CLANG(diagnostic pop)\nLIBINT_PRAGMA_GCC(diagnostic pop)\n#endif\n"; + return "#ifdef __cplusplus\n}\nLIBINT_PRAGMA_CLANG(diagnostic pop)\nLIBINT_PRAGMA_GCC(diagnostic pop)\n#endif\n"; } return ""; }