summaryrefslogtreecommitdiff
path: root/navit/debug.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-27 13:21:58 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-27 13:21:58 +0000
commitd75c1375f6f12f1175d7960a1a1c401998c05f89 (patch)
tree340e758649a1816bdb8e841765d72158f1933a1a /navit/debug.h
parentb03bba45673f36049ce67a627fc6140305ea391f (diff)
downloadnavit-svn-d75c1375f6f12f1175d7960a1a1c401998c05f89.tar.gz
Fix:Core:Compilation with non gcc
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5519 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.h')
-rw-r--r--navit/debug.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/debug.h b/navit/debug.h
index 6bd691c4..519e3e2e 100644
--- a/navit/debug.h
+++ b/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);