X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarchash.c;h=ea25f6f625aeb31ed56f29309842ea70ae17ef09;hb=8ffa7e44afe1ae74ec07278d0bcc93b388c39871;hp=6376d1fbaa6f75a2d4c040577d499bb8ecfbe20b;hpb=10d3084d16f4926bb3ba14222c19cfd01eb4ca8d;p=pazpar2-moved-to-github.git diff --git a/src/marchash.c b/src/marchash.c index 6376d1f..ea25f6f 100644 --- a/src/marchash.c +++ b/src/marchash.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2009 Index Data + Copyright (C) 2006-2010 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 @@ -23,6 +23,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #if HAVE_CONFIG_H #include +#else +/* disable inline if AC_C_INLINE is not in use (Windows) */ +#define inline #endif #include @@ -35,9 +38,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "jenkins_hash.h" -#include +#include "marchash.h" -inline void strtrimcat(char *dest, const char *src) +static inline void strtrimcat(char *dest, const char *src) { const char *in; char *out; @@ -63,7 +66,7 @@ inline void strtrimcat(char *dest, const char *src) *(++last_nonspace) = '\0'; } -inline void strtrimcpy(char *dest, const char *src) +static inline void strtrimcpy(char *dest, const char *src) { *dest = '\0'; strtrimcat(dest, src);