Use __funct__ instead: __FUNCTION__ is gcc specific, whilst __func__ is defined in C99. See http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html.