From a5c934386f47aef1921dba08051778df76561f30 Mon Sep 17 00:00:00 2001 From: martin-s Date: Mon, 27 May 2013 13:21:58 +0000 Subject: Fix:Core:Compilation with non gcc git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5519 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/debug.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1