From 486f2af06454b327b3fc35c6a959555be452bcc3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 11 Sep 2011 18:24:16 +0200 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ lib/sys_uio.in.h | 2 +- modules/strings | 1 + modules/sys_uio | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.11.0