From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4169 invoked by alias); 9 Feb 2006 22:13:44 -0000 Received: (qmail 4161 invoked by uid 22791); 9 Feb 2006 22:13:43 -0000 X-Spam-Check-By: sourceware.org Received: from gandalf.inter.net.il (HELO gandalf.inter.net.il) (192.114.186.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Feb 2006 22:13:43 +0000 Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id HVF00028; Fri, 10 Feb 2006 00:13:34 +0200 (IST) Received: from HOME-C4E4A596F7 (IGLD-84-228-240-137.inter.net.il [84.228.240.137]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id CRC39722 (AUTH halo1); Fri, 10 Feb 2006 00:12:32 +0200 (IST) Date: Thu, 09 Feb 2006 22:13:00 -0000 Message-Id: From: Eli Zaretskii To: gdb-patches@sourceware.org In-reply-to: <20060209210645.GA1854@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 9 Feb 2006 16:06:45 -0500) Subject: Re: RFA: Support Windows extended error numbers in safe_strerror Reply-to: Eli Zaretskii References: <200602062254.k16MsagK009925@elgar.sibelius.xs4all.nl> <20060206225829.GA31895@nevyn.them.org> <20060208000855.GA5040@nevyn.them.org> <200602082107.k18L7xRh013417@elgar.sibelius.xs4all.nl> <200602082310.k18NAQNe027038@elgar.sibelius.xs4all.nl> <15661.192.87.1.22.1139496247.squirrel@webmail.xs4all.nl> <20060209145753.GA25270@nevyn.them.org> <20060209210645.GA1854@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00224.txt.bz2 > Date: Thu, 9 Feb 2006 16:06:45 -0500 > From: Daniel Jacobowitz > > > If the default version doesn't compile on the platform that needs the > > hook, the solution is simple: define enough macros and stub functions > > to effectively make it the default version a nop on that platform. > > Except now I can't define either macros or prototypes for the stub > functions Yes, you can: in defs.h, if no other suitable header can be found in include/, like filenames.h for file-name related issues. Or we could add a sysdep.h header just to lump all kinds of system-dependent ugliness there.