strings: Fix compilation error on MSVC.
authorBruno Haible <bruno@clisp.org>
Mon, 26 Sep 2011 00:36:46 +0000 (02:36 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 26 Sep 2011 00:36:46 +0000 (02:36 +0200)
* lib/strings.in.h: Include <stddef.h> for size_t.

ChangeLog
lib/strings.in.h

index 27cdfcd..ae62e72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * doc/posix-functions/fflush.texi: Document possible crash in handling
        mode other than DEFAULT_HANDLING.
index 296867b..7eaf28d 100644 (file)
 #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.  */