From eb782fdec2faaea5602712383a1d01b7bbbd7567 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 26 Sep 2011 02:36:46 +0200 Subject: [PATCH] strings: Fix compilation error on MSVC. * lib/strings.in.h: Include for size_t. --- ChangeLog | 5 +++++ lib/strings.in.h | 5 +++++ 2 files changed, 10 insertions(+) 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. */ -- 2.11.0