Don't #define __FUNCTION__ on a Microsoft C compiler new enough to have it.

This commit is contained in:
Karl Schultz 2005-07-01 20:11:46 +00:00
parent 219f3c4489
commit eac7688231

View file

@ -288,10 +288,11 @@ int INLINE ffs(int value)
/* The __FUNCTION__ gcc variable is generally only used for debugging.
* If we're not using gcc, define __FUNCTION__ as a cpp symbol here.
* Don't define it if using a newer Windows compiler.
*/
#if defined(__VMS)
#define __FUNCTION__ "VMS$NL:"
#elif !(defined(__GNUC__) && __GNUC__ >= 2)
#elif !(defined(__GNUC__) && __GNUC__ >= 2) && !(defined(_MSC_VER) && _MSC_VER >= 1300)
#define __FUNCTION__ "unknown"
#endif