www.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 |
Message-ID: | <14318.8996.731065.301771@loki.wkstn.nix> |
Date: | Sun, 26 Sep 1999 14:44:04 +0100 (BST) |
MIME-Version: | 1.0 |
X-Mailer: | VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid |
From: | Nix <nix AT esperi DOT demon DOT co DOT uk> |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | [PATCH] Make libio.h work in cygwin-b20 |
libio.h does not work when #included in cygwin-b20. This is because of this code therefrom: : #ifndef __P : # if _G_HAVE_SYS_CDEFS : # include <sys/cdefs.h> : # else : # ifdef __STDC__ : # define __P(p) p : # else : # define __P(p) () : # endif : # endif : #endif /*!__P*/ [and, further down, code that uses __P, like : extern int _IO_getc __P ((_IO_FILE *__fp)); ] 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. This patch adds such a definition to <sys/cdefs.h>. (The path in the patch may well be wrong.) --- sys/cdefs.h.orig Sat Sep 25 20:30:57 1999 +++ sys/cdefs.h Sat Sep 25 20:30:57 1999 @@ -7,5 +7,9 @@ #define __BEGIN_DECLS #define __END_DECLS #endif +#ifdef __STDC__ +#define __P(args) args +#else +#define __P(args) () +#endif #endif I hope this is useful. -- `I need some female underwear.' --- Vadik @ 1999-09-19 -- 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 |