Define log2() on FreeBSD (fixes bug #343).

This commit is contained in:
Jitse Niesen 2011-09-06 06:52:04 +01:00
parent f1d98aad1b
commit b38d3b360e

View File

@ -28,7 +28,7 @@
#include "StemFunction.h"
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__FreeBSD__)
template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
#endif