Bug 3755 - IOQuake3 shouldn't use GCC-specific __FUNCTION__
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Platform
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-08-19 20:22 EDT by Patrick Baggett
Modified: 2008-08-22 18:47:43 EDT
0 users

See Also:


Attachments
Patch to replace __FUNCTION__ with __func__ (2.35 KB, patch)
2008-08-19 20:23 EDT, Patrick Baggett

Description Patrick Baggett 2008-08-19 20:22:18 EDT
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).
Comment 1 Patrick Baggett 2008-08-19 20:23:30 EDT
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.
Comment 2 Tim Angus 2008-08-22 18:47:43 EDT
Fixed in r1456.