X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxmalloca.c;h=6c7a0228ea4cf5a64b3316b73bdebe3c307e27b2;hb=573dad2ce496fa87dac2e79f37bae62e0be1d2c6;hp=855913d290e2ed8264c74df7fddde495f671ff3b;hpb=2369b1bcc0d63e34883ad87d47e24687e29ef87c;p=gnulib.git diff --git a/lib/xmalloca.c b/lib/xmalloca.c index 855913d29..6c7a0228e 100644 --- a/lib/xmalloca.c +++ b/lib/xmalloca.c @@ -1,11 +1,11 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2003. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include @@ -23,6 +22,8 @@ #include "xalloc.h" +#if HAVE_ALLOCA + void * xmmalloca (size_t n) { @@ -33,3 +34,5 @@ xmmalloca (size_t n) xalloc_die (); return p; } + +#endif