From: Bruno Haible Date: Mon, 26 Sep 2011 00:36:46 +0000 (+0200) Subject: strings: Fix compilation error on MSVC. X-Git-Tag: v0.1~1738 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=eb782fdec2faaea5602712383a1d01b7bbbd7567;p=gnulib.git strings: Fix compilation error on MSVC. * lib/strings.in.h: Include for size_t. --- diff --git a/ChangeLog b/ChangeLog index 27cdfcd5b..ae62e72f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-09-25 Bruno Haible + strings: Fix compilation error on MSVC. + * lib/strings.in.h: Include for size_t. + +2011-09-25 Bruno Haible + fflush et al.: Document limitation on MSVC. * doc/posix-functions/fflush.texi: Document possible crash in handling mode other than DEFAULT_HANDLING. diff --git a/lib/strings.in.h b/lib/strings.in.h index 296867b7f..7eaf28dfd 100644 --- a/lib/strings.in.h +++ b/lib/strings.in.h @@ -37,6 +37,11 @@ #ifndef _@GUARD_PREFIX@_STRINGS_H #define _@GUARD_PREFIX@_STRINGS_H +#if ! @HAVE_DECL_STRNCASECMP@ +/* Get size_t. */ +# include +#endif + /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */