| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Mon, 27 Sep 1999 11:08:22 -0700 |
| From: | Geoffrey Noer <noer AT cygnus DOT com> |
| To: | Nix <nix AT esperi DOT demon DOT co DOT uk> |
| Cc: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | Re: [PATCH] Make libio.h work in cygwin-b20 |
| Message-ID: | <19990927110822.B21081@cygnus.com> |
| References: | <14318 DOT 8996 DOT 731065 DOT 301771 AT loki DOT wkstn DOT nix> |
| Mime-Version: | 1.0 |
| X-Mailer: | Mutt 0.95.1i |
| In-Reply-To: | <14318.8996.731065.301771@loki.wkstn.nix>; from Nix on Sun, Sep 26, 1999 at 02:44:04PM +0100 |
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 AT cygnus DOT com
Cygnus Solutions
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |