From 014357e0f4888002b5262a967876056ba9ffe8ab Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 14 Jan 2009 20:44:09 +0000 Subject: [PATCH] read fct. prototype --- src/include/wstdio.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/include/wstdio.h b/src/include/wstdio.h index 93794a68b..eae1443fd 100644 --- a/src/include/wstdio.h +++ b/src/include/wstdio.h @@ -44,10 +44,13 @@ int vfp_r_i_n_t_f(FILE * __stream, const char * __format, void * __arglist); int vp_r_i_n_t_f(const char * __format, void * __arglist); /*int vs_c_a_n_f(const char * __format, void * __arglist); */ #ifdef _MSC_VER +#if _MSC_VER < 1500 +/* VC++ 6.0, VC++ 2005 */ +_CRTIMP int __cdecl read(int fd, void * __buf, unsigned int __n); +#else /* VC++ 2008 */ _CRTIMP int __cdecl read(int fd, _Out_bytecap_(_MaxCharCount) void * __buf, _In_ unsigned int __n); -/* VC++ 2005 */ -//_CRTIMP int __cdecl read(int fd, void * __buf, unsigned int __n); +#endif #else int r_e_a_d(int fd, char * __buf, int __n); #endif