Re: Bonobo stream API mis-naming ...



On Wed, 2002-08-21 at 00:40, Michael Meeks wrote:
> 	The problem is ( on Solaris ) things like:
> 
> > grep '[^f]truncate.*truncate64' /usr/include/unistd.h 
> #pragma redefine_extname        truncate        truncate64
> #define truncate                        truncate64

How does this sound:

#if defined(truncate) && defined(SOLARIS)
#undef truncate
#define truncate(X,Y) truncate64((X),(Y))
#endif

(where SOLARIS is some useful preprocessor symbol)

That shouldn't pollute the struct namespace but will make the right
function be called.

Ian

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]