diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-18 20:28:48 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-18 20:28:48 +0000 |
commit | 99723e15babd1aeecffa72abdbdab6a615d49821 (patch) | |
tree | 5f39c1a486563607d5c897319d8ba5c0408ce5c1 /include | |
parent | 6b3d52ff0e4deac5b65dc7162fd4723466036432 (diff) | |
download | libgtop-99723e15babd1aeecffa72abdbdab6a615d49821.tar.gz |
Also tries C99 __VA_ARGS__ before using functions.
* include/glibtop/error.h: Also tries C99 __VA_ARGS__ before using
functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/glibtop/error.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/glibtop/error.h b/include/glibtop/error.h index dd41360a..b4a57a36 100644 --- a/include/glibtop/error.h +++ b/include/glibtop/error.h @@ -48,7 +48,15 @@ void G_GNUC_UNUSED glibtop_warn_io_r (glibtop *server, char *format, ...); #define glibtop_error_io(p1, args...) glibtop_error_io_r(glibtop_global_server , p1 , ## args) #define glibtop_warn_io(p1, args...) glibtop_warn_io_r(glibtop_global_server , p1 , ## args) -#else /* no __GNUC__ */ +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + +#define glibtop_error(p1, ...) glibtop_error_r(glibtop_global_server , p1 , __VA_ARGS__) +#define glibtop_warn(p1, ...) glibtop_warn_r(glibtop_global_server , p1 , __VA_ARGS__) + +#define glibtop_error_io(p1, ...) glibtop_error_io_r(glibtop_global_server , p1 , __VA_ARGS__) +#define glibtop_warn_io(p1, ...) glibtop_warn_io_r(glibtop_global_server , p1 , __VA_ARGS__) + +#else /* no __GNUC__, no C99*/ void glibtop_error (char *format, ...); void glibtop_warn (char *format, ...); |