]> Savannah Git Hosting - gnulib.git/commitdiff
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 27cdfcd5b03c3d53bd8207828d8300e10d489c5b..ae62e72f1799e613de051cf7915b9d74f731e776 100644 (file)
--- 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.
index 296867b7fa966f798b1b94c7db2f072ec00b2d2f..7eaf28dfd61f75c91dc0466a34cc84a8356690c1 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.  */