* lib/openat.h: Include <stdnoreturn.h>.
(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
* modules/openat (Depends-on): Add stdnoreturn.
2011-07-12 Paul Eggert <eggert@cs.ucla.edu>
+ openat: use stdnoreturn.h
+ * lib/openat.h: Include <stdnoreturn.h>.
+ (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
+ * modules/openat (Depends-on): Add stdnoreturn.
+
* lib/openat-die.c (openat_save_fail): Modernize comment.
* lib/xalloc-die.c (xalloc_die): Modernize comment.
#include <dirent.h>
#include <unistd.h>
#include <stdbool.h>
-
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)
-# define _GL_ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
-#else
-# define _GL_ATTRIBUTE_NORETURN /* empty */
-#endif
+#include <stdnoreturn.h>
#if !HAVE_OPENAT
#endif
-void openat_restore_fail (int) _GL_ATTRIBUTE_NORETURN;
-void openat_save_fail (int) _GL_ATTRIBUTE_NORETURN;
+noreturn void openat_restore_fail (int);
+noreturn void openat_save_fail (int);
/* Using these function names makes application code
slightly more readable than it would be with
rmdir [test $REPLACE_UNLINKAT = 1]
save-cwd
stdbool
+stdnoreturn
sys_stat
unistd
unlink [test $REPLACE_UNLINKAT = 1]