Module: sip-router Branch: master Commit: 61c88f85d352a0e5357637290258212016442177 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=61c88f85...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Oct 5 18:43:54 2010 +0200
core: no function name in logs for gcc 2.95
For old gccs check if __FUNCTION__ is defined before enabling logging of the function name. This fixes compilation with gcc 2.95.
---
dprint.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dprint.h b/dprint.h index 2da1243..c3f2b27 100644 --- a/dprint.h +++ b/dprint.h @@ -48,7 +48,7 @@
/* C >= 99 has __func__, older gcc versions have __FUNCTION__ */ #if __STDC_VERSION__ < 199901L -# if __GNUC__ >= 2 +# if __GNUC__ >= 2 && defined __FUNCTION__ # define _FUNC_NAME_ __FUNCTION__ # else # define _FUNC_NAME_ ""