diff options
Diffstat (limited to 'unix/xserver/hw/vnc/XorgGlue.h')
-rw-r--r-- | unix/xserver/hw/vnc/XorgGlue.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/unix/xserver/hw/vnc/XorgGlue.h b/unix/xserver/hw/vnc/XorgGlue.h index 5d019493..40b3d343 100644 --- a/unix/xserver/hw/vnc/XorgGlue.h +++ b/unix/xserver/hw/vnc/XorgGlue.h @@ -24,18 +24,12 @@ extern "C" { #endif -#ifdef __GNUC__ -# define __printf_attr(a, b) __attribute__((__format__ (__printf__, a, b))) -# define __noreturn_attr __attribute__((noreturn)) -#else -# define __printf_attr(a, b) -# define __noreturn_attr -#endif // __GNUC__ - const char *vncGetDisplay(void); unsigned long vncGetServerGeneration(void); -void vncFatalError(const char *format, ...) __printf_attr(1, 2) __noreturn_attr; +void vncFatalError(const char *format, ...) + __attribute__((__format__ (__printf__, 1, 2))) + __attribute__((noreturn)); int vncGetScreenCount(void); |