This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Useful function declarations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]