diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-27 13:21:58 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-05-27 13:21:58 +0000 |
commit | a5c934386f47aef1921dba08051778df76561f30 (patch) | |
tree | 16967adf310756d5c36a438d31b6f1ba9501723f | |
parent | 84306676c4d14861d08f6b602b0c6660ecfabac1 (diff) | |
download | navit-a5c934386f47aef1921dba08051778df76561f30.tar.gz |
Fix:Core:Compilation with non gcc
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5519 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/navit/debug.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/navit/debug.h b/navit/navit/debug.h index 6bd691c40..519e3e2e3 100644 --- a/navit/navit/debug.h +++ b/navit/navit/debug.h @@ -74,7 +74,11 @@ void debug_level_set(const char *name, int level); struct debug *debug_new(struct attr *parent, struct attr **attrs); int debug_level_get(const char *name); void debug_vprintf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap); -void debug_printf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...) __attribute__ ((format (printf, 7, 8))); +void debug_printf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...) +#ifdef __GNUC__ + __attribute__ ((format (printf, 7, 8))) +#endif +; void debug_assert_fail(const char *module, const int mlen, const char *function, const int flen, const char *file, int line, const char *expr); void debug_destroy(void); void debug_set_logfile(const char *path); |