chiark / gitweb /
WIP routesearch; New SQL_DISTINCT_{DECL,STEP}
[ypp-sc-tools.db-test.git] / yarrg / common.h
index 085627452ed9cbc2a4fed8ed48a77c8e3c79069c..09bb391392e8d84f71e5de5f2c9b210d0cc7add9 100644 (file)
@@ -83,10 +83,14 @@ enum {
 
 #endif /*DEBUG_FLAG_LIST*/
 
+#ifndef debug_flags
 extern unsigned debug_flags;
+#endif
 
 void debug_flush(void);
-#define debug stderr
+#ifndef debug
+# define debug stderr
+#endif
 
 #define FMT(f,a) __attribute__((format(printf,f,a)))
 #define SCANFMT(f,a) __attribute__((format(scanf,f,a)))