Skip to content
Browse files

[xrandr] - handle _X_NORETURN the right way - thx for the hint @NHell…

  • Loading branch information...
1 parent ed1a6aa commit aca862cd92c61d0f845d7c02193b7dcd04340f4c @Memphiz Memphiz committed Jul 11, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc-xrandr.c
View
5 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;

0 comments on commit aca862c

Please sign in to comment.
Something went wrong with that request. Please try again.