X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsigpipe-die.h;h=c8e2cd89afd61096812242f0e00e09343f82f503;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=4cbd92096f53994fff1fc1301e609709149935b7;hpb=f6a5a124d0cb326acd4dfa9ce3276baa26734b16;p=gnulib.git diff --git a/lib/sigpipe-die.h b/lib/sigpipe-die.h index 4cbd92096..c8e2cd89a 100644 --- a/lib/sigpipe-die.h +++ b/lib/sigpipe-die.h @@ -1,5 +1,5 @@ /* Report a SIGPIPE signal and exit. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,21 +41,14 @@ #ifndef _SIGPIPE_DIE_H #define _SIGPIPE_DIE_H - #ifdef __cplusplus extern "C" { #endif -# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) -# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -# else -# define ATTRIBUTE_NORETURN /* empty */ -# endif - /* Emit an error message indicating a SIGPIPE signal, and terminate the process with an error code. */ -extern void sigpipe_die (void) ATTRIBUTE_NORETURN; +extern _Noreturn void sigpipe_die (void); /* Install a SIGPIPE handler that invokes PREPARE_DIE and then emits an error message and exits. PREPARE_DIE may be NULL, meaning a no-op. */