Support for MSVC compiler: Ensure size_t gets defined.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Sep 2011 16:24:16 +0000 (18:24 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Sep 2011 16:24:16 +0000 (18:24 +0200)
* modules/strings (Depends-on): Add 'sys_types'.
* modules/sys_uio (Depends-on): Likewise.
* lib/sys_uio.in.h: Update comment.

ChangeLog
lib/sys_uio.in.h
modules/strings
modules/sys_uio

index c5ebe17..1570c27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-09-11  Bruno Haible  <bruno@clisp.org>
 
+       Support for MSVC compiler: Ensure size_t gets defined.
+       * modules/strings (Depends-on): Add 'sys_types'.
+       * modules/sys_uio (Depends-on): Likewise.
+       * lib/sys_uio.in.h: Update comment.
+
        C++ tests for module 'sys_types'.
        * modules/sys_types-c++-tests: New file.
        * tests/test-sys_types-c++.cc: New file.
index e043d02..04cf13d 100644 (file)
@@ -37,7 +37,7 @@
 
 #if !@HAVE_SYS_UIO_H@
 /* A platform that lacks <sys/uio.h>.  */
-/* Get 'ssize_t'.  */
+/* Get 'size_t' and 'ssize_t'.  */
 # include <sys/types.h>
 
 # ifdef __cplusplus
index 631cabb..905a45c 100644 (file)
@@ -10,6 +10,7 @@ include_next
 snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
+sys_types
 
 configure.ac:
 gl_HEADER_STRINGS_H
index b6ca3d8..337ad8f 100644 (file)
@@ -7,6 +7,7 @@ m4/sys_uio_h.m4
 
 Depends-on:
 include_next
+sys_types
 
 configure.ac:
 gl_HEADER_SYS_UIO