X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxmemdup0.h;h=9ec827107a09e0f997628b6014cba9fa49c29620;hb=43593319b31e6b0175b8eec4433bac744959822d;hp=ca195420a7d360f6ce5319945c088fda2fa3dc9b;hpb=929dcebaff7c1ee0501e83ee6e3016aa6d95b4cf;p=gnulib.git diff --git a/lib/xmemdup0.h b/lib/xmemdup0.h index ca195420a..9ec827107 100644 --- a/lib/xmemdup0.h +++ b/lib/xmemdup0.h @@ -1,6 +1,6 @@ /* xmemdup0.h -- copy a block of arbitrary bytes, plus a trailing NUL - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2013 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 @@ -25,22 +25,12 @@ 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 - /* This function is always triggered when memory is exhausted. It must be defined by the application, either explicitly or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ -extern void xalloc_die (void) ATTRIBUTE_NORETURN; +extern _Noreturn void xalloc_die (void); char *xmemdup0 (void const *p, size_t s);