X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fsigpipe-die.h;h=2e1ac27d7265b6f1e1775f2dd0d3803cd253af99;hb=652e59d2790aaf0fedcd8267ac6fe84f10570d46;hp=e677943bf991727a8f5432bd643e0c11ad2ab299;hpb=ab01b091793316d28722ad1d7e6b869d6ec3911b;p=gnulib.git diff --git a/lib/sigpipe-die.h b/lib/sigpipe-die.h index e677943bf..2e1ac27d7 100644 --- a/lib/sigpipe-die.h +++ b/lib/sigpipe-die.h @@ -1,5 +1,5 @@ /* Report a SIGPIPE signal and exit. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2011 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,25 +41,14 @@ #ifndef _SIGPIPE_DIE_H #define _SIGPIPE_DIE_H - #ifdef __cplusplus extern "C" { #endif -# ifndef __attribute__ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) -# define __attribute__(x) -# endif -# endif - -# ifndef ATTRIBUTE_NORETURN -# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -# 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. */