2011-07-12 Paul Eggert <eggert@cs.ucla.edu>
+ xstrtol: use stdnoreturn.h
+ * lib/xstrtol.h: Include <stdnoreturn.h>.
+ (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
+ * modules/xstrtol (Depends-on): Add stdnoreturn.
+
xmemdup0: use stdnoreturn.h
* lib/xmemdup0.h: Include <stdnoreturn.h>.
(_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
# include <getopt.h>
# include <inttypes.h>
+# include <stdnoreturn.h>
# ifndef _STRTOL_ERROR
enum strtol_error
_DECLARE_XSTRTOL (xstrtoull, unsigned long long int)
#endif
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)
-# define _GL_ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
-#else
-# define _GL_ATTRIBUTE_NORETURN /* empty */
-#endif
-
/* Report an error for an invalid integer in an option argument.
ERR is the error code returned by one of the xstrto* functions.
After reporting an error, exit with a failure status. */
-void xstrtol_fatal (enum strtol_error,
- int, char, struct option const *,
- char const *) _GL_ATTRIBUTE_NORETURN;
+void noreturn xstrtol_fatal (enum strtol_error,
+ int, char, struct option const *,
+ char const *);
#endif /* not XSTRTOL_H_ */