This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Useful function declarations
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 1 Mar 2005 15:38:43 -0800
- Subject: Useful function declarations
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
A number of useful function declarations, such as ftruncate, are
hidden behind #if defined(__CYGWIN__) or #if defined(__rtems__). I'm
wary of defining these symbols for unwanted side effects. How about
another symbol such as __SUSv2__ or __I_WANT_IT_ALL_BABY__ such that
all #if defined(__rtems__) become #if defined(__rtems__) ||
defined(__SUSv2__), or whichever symbol is appropriate.
I'm compiling busybox with newlib for arm-elf and found I had to
modify by hand some 26 header files, most of which already had the
function declaration I wanted, but had it hidden behind __CYGWIN__ or
__rtems__.
Cheers,
Shaun