From: Bruno Haible Date: Sun, 11 Sep 2011 16:24:16 +0000 (+0200) Subject: Support for MSVC compiler: Ensure size_t gets defined. X-Git-Tag: v0.1~1927 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=486f2af06454b327b3fc35c6a959555be452bcc3;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index c5ebe174a..1570c2709 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-09-11 Bruno Haible + 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. diff --git a/lib/sys_uio.in.h b/lib/sys_uio.in.h index e043d02b8..04cf13db9 100644 --- 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 . */ -/* Get 'ssize_t'. */ +/* Get 'size_t' and 'ssize_t'. */ # include # ifdef __cplusplus diff --git a/modules/strings b/modules/strings index 631cabbae..905a45c6e 100644 --- a/modules/strings +++ b/modules/strings @@ -10,6 +10,7 @@ include_next snippet/arg-nonnull snippet/c++defs snippet/warn-on-use +sys_types configure.ac: gl_HEADER_STRINGS_H diff --git a/modules/sys_uio b/modules/sys_uio index b6ca3d82d..337ad8f62 100644 --- a/modules/sys_uio +++ b/modules/sys_uio @@ -7,6 +7,7 @@ m4/sys_uio_h.m4 Depends-on: include_next +sys_types configure.ac: gl_HEADER_SYS_UIO