This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Make libio.h work in cygwin-b20


On Sun, Sep 26, 1999, Nix wrote:
>
> libio.h does not work when #included in cygwin-b20.
[...]
> This code is OK; the GNU C Library has included a definition of __P in
> <sys/cdefs.h> for donkey's years (since before the changelog began, it
> seems).
> 
> But cygwin-b20's <cdefs.h> does not contain such a definition, so that
> any code that includes <libio.h> before including anything else that
> defines __P breaks.

Looks like this has already been fixed.  winsup/include/sys/cdefs.h:

#ifndef _SYS_CDEFS_H
#define _SYS_CDEFS_H
#ifdef  __cplusplus
#define __BEGIN_DECLS   extern "C" {
#define __END_DECLS     }
#else
#define __BEGIN_DECLS
#define __END_DECLS
#endif
#define __P(protos)     protos          /* full-blown ANSI C */
#endif

-- 
Geoffrey Noer		Email: noer@cygnus.com
Cygnus Solutions

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]