[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read on MSVC
From: |
Bruno Haible |
Subject: |
Re: read on MSVC |
Date: |
Sat, 24 Sep 2011 16:44:26 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
> * lib/read.c (read_nothrow): New function.
Oops, that was slightly wrong.
2011-09-24 Bruno Haible <address@hidden>
read: Fix last commit.
* lib/read.c (read_nothrow): Change return type to 'ssize_t'.
--- lib/read.c.orig Sat Sep 24 16:43:04 2011
+++ lib/read.c Sat Sep 24 16:36:28 2011
@@ -34,10 +34,10 @@
# undef read
# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
-static inline int
+static inline ssize_t
read_nothrow (int fd, void *buf, size_t count)
{
- int result;
+ ssize_t result;
TRY_MSVC_INVAL
{
--
In memoriam Sara Harpman
<http://www.genealogieonline.nl/en/stamboom-harpman/I399.php>
- read on MSVC, Bruno Haible, 2011/09/23
- Re: read on MSVC,
Bruno Haible <=