# HG changeset patch # User Bruno Haible # Date 1315758256 -7200 # Node ID d915252fc89daa88209e8895138d56b4c3d50fab # Parent 38b3c02da7f0b83636ed3b12b8e5c7bf82cef773 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 --- 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 --- 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 --- 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 diff --git a/modules/sys_uio b/modules/sys_uio --- a/modules/sys_uio +++ b/modules/sys_uio @@ -7,6 +7,7 @@ Depends-on: include_next +sys_types configure.ac: gl_HEADER_SYS_UIO