diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-25 15:19:59 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-25 15:19:59 +0000 |
commit | 8f2463e0f1a3d04fa34fa2da07191eb5c97d915e (patch) | |
tree | bffd9bcf3f8f9dccb042e66e02e280fa93a6648c /navit/debug.c | |
parent | cd8b9e184f8fee3f9a794bcccae0eaf2ab2c9d65 (diff) | |
download | navit-8f2463e0f1a3d04fa34fa2da07191eb5c97d915e.tar.gz |
Fix:Core:MSVC fixes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4023 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.c')
-rw-r--r-- | navit/debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/debug.c b/navit/debug.c index 0548a3cc9..d69d066ad 100644 --- a/navit/debug.c +++ b/navit/debug.c @@ -328,6 +328,9 @@ debug_malloc(const char *where, int line, const char *func, int size) if (head->next) head->next->prev=head; head->where=g_strdup_printf("%s:%d %s",where,line,func); +#if !defined (__GNUC__) +#define __builtin_return_address(x) NULL +#endif head->return_address[0]=__builtin_return_address(0); head->return_address[1]=__builtin_return_address(1); head->return_address[2]=__builtin_return_address(2); |