The best suggestion I have for a compiler extension to allow a correct implementation would be a series of builtin functions corresponding to the glibc macros I completely agree. There's no reason to try to do this stuff with macros in glibc. -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com