projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fcbed2
)
Define log2(x) on Windows
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 22 Oct 2012 08:37:38 +0000
(10:37 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 22 Oct 2012 08:37:38 +0000
(10:37 +0200)
This is because log2 is not defined by math.h on Windows.
src/relevance.c
patch
|
blob
|
history
diff --git
a/src/relevance.c
b/src/relevance.c
index
9766a5b
..
d22598d
100644
(file)
--- 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;