http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46333
--- Comment #6 from Jay <jay.krell at cornell dot edu> 2010-11-07 00:15:05 UTC --- trying.. #if defined(__cplusplus) && !defined(__GNUC__) && defined(__sun) #undef HAVE_PUTC_UNLOCKED #undef HAVE_PUTCHAR_UNLOCKED #undef HAVE_GETC_UNLOCKED #undef HAVE_GETCHAR_UNLOCKED #endif