When building IOQuake3 under IRIX 6.5 with MIPSpro CC 7.4.1, I get errors related to __FUNCTION__ not being defined. It turns out that __FUNCTION__ is a GCC-specific feature, and the C99 equivalent is __func__. The patch attached replaces __FUNCTION__ with __func__, and detects when __func__ is not defined (i.e. not compiling in C99 mode).
Created attachment 1833[details]
Patch to replace __FUNCTION__ with __func__
This patch replaces __FUNCTION__ with __func__, the C99 correct usage and handles the case when not compiling in C99.
Created attachment 1833 [details] Patch to replace __FUNCTION__ with __func__ This patch replaces __FUNCTION__ with __func__, the C99 correct usage and handles the case when not compiling in C99.