aboutsummaryrefslogtreecommitdiff
path: root/xbmc-xrandr.c
diff options
context:
space:
mode:
authorMemphis <memphis@machzwo.de>2012-07-11 22:59:51 +0200
committerMemphis <memphis@machzwo.de>2012-07-11 23:01:56 +0200
commitaca862cd92c61d0f845d7c02193b7dcd04340f4c (patch)
tree90b5a52bbeb987d6bef2d2ca343b1c95e2842f13 /xbmc-xrandr.c
parented1a6aa8bc2907434674b5a9545465ace603623f (diff)
[xrandr] - handle _X_NORETURN the right way - thx for the hint @NHellFire
Diffstat (limited to 'xbmc-xrandr.c')
-rw-r--r--xbmc-xrandr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc-xrandr.c b/xbmc-xrandr.c
index 2db9f1e9a2..b54b253845 100644
--- a/xbmc-xrandr.c
+++ b/xbmc-xrandr.c
@@ -39,10 +39,13 @@
#include <stdint.h>
#include <math.h>
-
#ifndef _X_NORETURN
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
+#define _X_NORETURN __attribute((noreturn))
+#else
#define _X_NORETURN
#endif
+#endif
static char *program_name;
static Display *dpy;