summaryrefslogtreecommitdiff
path: root/dsimple.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-28 20:06:16 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 19:54:03 -0800
commit1f20efb09b0d437e0618b7588212e2e0b9ffd3b2 (patch)
tree785f311123045bcfc5f872572fcc0b2509fc6c4d /dsimple.h
parent9b529480074120f8228662ede175bfa65f6ece8c (diff)
Use _X_NORETURN from xproto 7.0.17 instead of local check
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'dsimple.h')
-rw-r--r--dsimple.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/dsimple.h b/dsimple.h
index b9e9a66..ae77a30 100644
--- a/dsimple.h
+++ b/dsimple.h
@@ -37,6 +37,8 @@ from The Open Group.
* Send bugs, etc. to chariot@athena.mit.edu.
*/
+#include <X11/Xfuncproto.h>
+
/* Simple helper macros */
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -77,8 +79,5 @@ void usage(void);
Window Select_Window(Display *, int descend);
Window Window_With_Name(Display *, Window, const char *);
-#ifdef __GNUC__
-void Fatal_Error(char *, ...) __attribute__((__noreturn__));
-#else
-void Fatal_Error(char *, ...);
-#endif
+
+void Fatal_Error(char *, ...) _X_NORETURN;