Date: Tue, 16 Jun 1998 08:52:20 -0400 (EDT) Message-Id: <199806161252.IAA23884@delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: (message from Eli Zaretskii on Tue, 16 Jun 1998 13:22:09 +0300 (IDT)) Subject: Re: inb/outb Precedence: bulk OK, there are two separate problems that need two separate solutions. 1. We want to #define a function to a different function. Solution: Put the #define after the prototypes, so that a valid prototype is always available, whether the symbol is #undef'd or not. We provide both symbols in the library as well, just in case, but one calls the other. 2. Functions that are normally *not* defined by us, and applications provide their own prototypes (like xmalloc). We can't provide a prototype because it will, on average, conflict with 50% of the applications out there (they don't agree on what the prototype should be). We provide a function in libc just in case, but don't prototype it in the headers to avoid prototype conflicts.