X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Frelevance.c;h=b08d217706bb047a6b318fc35c31101c46474cd6;hb=92ee7569d83bf0302c2c02a3adc851e631bea06f;hp=9766a5ba5d77ecb3781c80387001d9f8a3d770b5;hpb=7184974aff1c737312a05376845b9a83c03c28ab;p=pazpar2-moved-to-github.git diff --git a/src/relevance.c b/src/relevance.c index 9766a5b..b08d217 100644 --- a/src/relevance.c +++ b/src/relevance.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2012 Index Data + Copyright (C) 2006-2013 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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;