Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: VM 6.72 under 21.1 (patch 6) "Big Bend" XEmacs Lucid From: Nix 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 : # 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 for donkey's years (since before the changelog began, it seems). But cygwin-b20's does not contain such a definition, so that any code that includes before including anything else that defines __P breaks. This patch adds such a definition to . (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