]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(alloca): Define to __builtin_alloca if __GNUC__,
authorJim Meyering <jim@meyering.net>
Mon, 22 Oct 2001 08:01:43 +0000 (08:01 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 22 Oct 2001 08:01:43 +0000 (08:01 +0000)
to avoid a warning if -Wall.

src/sys2.h

index e6ccc82c4b8eb23ecfc42cfb000475534142618a..c29a98139d055a9df74b50d8299c9be9389c8634 100644 (file)
 # define RETSIGTYPE void
 #endif
 
-#ifndef __GNUC__
+#if __GNUC__
+# define alloca __builtin_alloca
+#else
 # if HAVE_ALLOCA_H
 #  include <alloca.h>
 # else