Fixed C99 macros. Closes #161994. Patch by Vincent Berger

* include/glibtop/error.h:
	* sysdeps/common/error.c: Fixed C99 macros. Closes #161994.
	Patch by Vincent Berger <vincent.berger@ext.bull.net>.
This commit is contained in:
Benoît Dejean
2004-12-22 18:12:52 +00:00
parent 3aabc5fb13
commit eff32adaa4
3 changed files with 12 additions and 6 deletions

View File

@@ -50,11 +50,11 @@ void G_GNUC_UNUSED glibtop_warn_io_r (glibtop *server, char *format, ...);
#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(...) glibtop_error_r(glibtop_global_server , __VA_ARGS__)
#define glibtop_warn(...) glibtop_warn_r(glibtop_global_server , __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__)
#define glibtop_error_io(...) glibtop_error_io_r(glibtop_global_server , __VA_ARGS__)
#define glibtop_warn_io(...) glibtop_warn_io_r(glibtop_global_server , __VA_ARGS__)
#else /* no __GNUC__, no C99*/