bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnulib's alloca.h used even when there is a system header


From: Paul Eggert
Subject: Re: Gnulib's alloca.h used even when there is a system header
Date: Sun, 17 Feb 2019 13:09:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

Eli Zaretskii wrote:
  #ifndef alloca
  # ifdef __GNUC__
-#  define alloca __builtin_alloca
+#  if HAVE_ALLOCA_H
+#   include_next <alloca.h>
+#  else
+#   define alloca __builtin_alloca
+#  endif
  # elif defined _AIX

Why do the 'include_next' only for GCC? Why not do it for all compilers?

Also, what platforms don't work with the current Gnulib alloca module, and why?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]