changeset 15599:d915252fc89d

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 11 Sep 2011 18:24:16 +0200
parents 38b3c02da7f0
children c9fb431ba6a1
files ChangeLog lib/sys_uio.in.h modules/strings modules/sys_uio
diffstat 4 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/sys_uio.in.h
+++ b/lib/sys_uio.in.h
@@ -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
--- a/modules/strings
+++ b/modules/strings
@@ -10,6 +10,7 @@
 snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
+sys_types
 
 configure.ac:
 gl_HEADER_STRINGS_H
--- a/modules/sys_uio
+++ b/modules/sys_uio
@@ -7,6 +7,7 @@
 
 Depends-on:
 include_next
+sys_types
 
 configure.ac:
 gl_HEADER_SYS_UIO