Signed-off-by: Alan Coopersmith <[email protected]> --- configure.ac | 2 +- dsimple.h | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac index 0462836..147d733 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ XORG_DEFAULT_OPTIONS AC_CHECK_HEADERS([wchar.h wctype.h langinfo.h]) # Checks for pkg-config packages -PKG_CHECK_MODULES(XPROP, x11) +PKG_CHECK_MODULES(XPROP, [x11 xproto >= 7.0.17]) XORG_WITH_LINT 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 [email protected]. */ +#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; -- 1.7.3.2 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
