X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/3da28d8ef9eca73e00684e56a06b1d5c15c9bf67..3b7fa78b1de8f9ee8718cba3da3b2db522b70620:/src/helpfile.h diff --git a/src/helpfile.h b/src/helpfile.h index 60b4ade..75bb52c 100644 --- a/src/helpfile.h +++ b/src/helpfile.h @@ -5,7 +5,7 @@ * * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -88,9 +88,15 @@ int send_help_brief(struct userNode *dest, struct userNode *src, struct helpfile * irc_send is either irc_privmsg or irc_notice; NULL means figure it out. */ void table_send(struct userNode *from, const char *to, unsigned int size, irc_send_func irc_send, struct helpfile_table table); -#define send_channel_message(CHANNEL, ARGS...) send_target_message(5, (CHANNEL)->name, ARGS) -#define send_channel_notice(CHANNEL, ARGS...) send_target_message(4, (CHANNEL)->name, ARGS) -#define send_channel_wallchops(CHANNEL, ARGS...) send_target_message(6, (CHANNEL)->name, ARGS) +#if defined(GCC_VARMACROS) +# define send_channel_message(CHANNEL, ARGS...) send_target_message(5, (CHANNEL)->name, ARGS) +# define send_channel_notice(CHANNEL, ARGS...) send_target_message(4, (CHANNEL)->name, ARGS) +# define send_channel_wallchops(CHANNEL, ARGS...) send_target_message(6, (CHANNEL)->name, ARGS) +#elif defined(C99_VARMACROS) +# define send_channel_message(CHANNEL, ...) send_target_message(5, (CHANNEL)->name, __VA_ARGS__) +# define send_channel_notice(CHANNEL, ...) send_target_message(4, (CHANNEL)->name, __VA_ARGS__) +# define send_channel_wallchops(CHANNEL, ...) send_target_message(6, (CHANNEL)->name, __VA_ARGS__) +#endif struct message_entry {