This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: Guidance please: static or extern __inline__


On Jul 28, 2005, at 12:42 PM, Kean Johnston wrote:
[ cough ] "always_inline" [ cough ]
HA!

I *knew* there was a solution. Thank you Mike.

So now I guess the question remains, for the cases where
you want a function to behave differently depending on
pre-processor conditionals, whats the best way of doing
it?

[ cough ]


#if _FILE_OFFSET_BITS - 0 == 32
 int open (const char *, int, int) asm ("open32");
#elif _FILE_OFFSET_BITS - 0 == 64
 int open (const char *, int, int) asm ("open64");
#else
 int open (const char *, int, int) asm ("__open");
#endif

[ cough ]


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