projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pp2client calls stat and info
[pazpar2-moved-to-github.git]
/
src
/
relevance.c
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;