changeset 15788:75a91cfde4a1

strings: Fix compilation error on MSVC. * lib/strings.in.h: Include <stddef.h> for size_t.
author Bruno Haible <bruno@clisp.org>
date Mon, 26 Sep 2011 02:36:46 +0200
parents 68379d0973ef
children aae9f931a8fa
files ChangeLog lib/strings.in.h
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-25  Bruno Haible  <bruno@clisp.org>
+
+	strings: Fix compilation error on MSVC.
+	* lib/strings.in.h: Include <stddef.h> for size_t.
+
 2011-09-25  Bruno Haible  <bruno@clisp.org>
 
 	fflush et al.: Document limitation on MSVC.
--- 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 <stddef.h>
+#endif
+
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */