ports/graphics/hdr_tools/files/patch-helpers.hh
Alexey Dokuchaev 4614f1c06f Fix the build against `math/ldouble' when logl(), expl(), and log2l() are
not available in the base libm by wrapping #include <mathl.h> with extern
"C" block.
2015-08-31 02:54:15 +00:00

17 lines
244 B
C++

--- helpers.hh.orig 2010-11-23 21:22:51 UTC
+++ helpers.hh
@@ -35,6 +35,14 @@
#include <stdint.h>
+#if defined __FreeBSD__
+#include <osreldate.h>
+#if __FreeBSD_version < 1000034
+extern "C" {
+#include <mathl.h>
+}
+#endif
+#endif