From: Adam Dickmeiss Date: Mon, 22 Oct 2012 08:37:38 +0000 (+0200) Subject: Define log2(x) on Windows X-Git-Tag: v1.6.24~25 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=63466e474f690a04fe0ebdaaac87914768977757;p=pazpar2-moved-to-github.git Define log2(x) on Windows This is because log2 is not defined by math.h on Windows. --- diff --git a/src/relevance.c b/src/relevance.c index 9766a5b..d22598d 100644 --- a/src/relevance.c +++ b/src/relevance.c @@ -28,6 +28,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "relevance.h" #include "session.h" +#ifdef WIN32 +#define log2(x) (log(x)/log(2)) +#endif + struct relevance { int *doc_frequency_vec;