summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 1a991ac08c..0e61b49bbf 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -3562,6 +3562,11 @@ different floating point sizes and complex transformations.")
(string-append #$(this-package-native-input "unittest-cpp")
"/lib")
"', LIBS=['UnitTest++'])")))))
+ (add-after 'unpack 'fix-example
+ (lambda _
+ (substitute* "example/main.cpp"
+ (("fclose\\(file\\);")
+ "if (file != nullptr) {fclose(file); file = nullptr;}"))))
(replace 'build
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?