Check for and use appropriate type of variadic macro arguments.
[srvx.git] / src / global.c
index 69ab616d4c73e0d283e5b4712c6d734153e2e566..cadbf3c5dcaa07ea98558c7d7a5d57aa0c24a97d 100644 (file)
@@ -94,7 +94,11 @@ static struct
     unsigned long db_backup_frequency;
 } global_conf;
 
-#define global_notice(target, format...) send_message(target , global , ## format)
+#if defined(GCC_VARMACROS)
+# define global_notice(target, ARGS...) send_message(target, global, ARGS)
+#elif defined(C99_VARMACROS)
+# define global_notice(target, ...) send_message(target, global, __VA_ARGS__)
+#endif
 
 void message_expire(void *data);