summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/tool/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index 8a58484..d5a6a9e 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -792,7 +792,7 @@ namespace Slicer {
if (cpp && !cppPath.empty()) {
throw CompilerError("Both file handle and path provided.");
}
- auto cppfile = std::unique_ptr<FILE, decltype(&fclose)>(
+ auto cppfile = std::unique_ptr<FILE, int (*)(FILE *)>(
cpp || cppPath.empty() ? cpp : fopen(cppPath.c_str(), "w"), cppPath.empty() ? fflush : fclose);
if (!cppfile && !cppPath.empty()) {
throw CompilerError("Failed to open output file");