Commit 7d33814c authored by lenz@mysql.com's avatar lenz@mysql.com

After discussing it with Monty by phone once more:

 - Only define alloca as a compiler builtin, if we use GCC and there
   is no alloca.h installed
parent a80d185e
......@@ -150,6 +150,9 @@ extern my_string my_strdup(const char *from,myf MyFlags);
#if defined(_AIX) && !defined(__GNUC__)
#pragma alloca
#endif /* _AIX */
#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H)
#define alloca __builtin_alloca
#endif /* GNUC */
#define my_alloca(SZ) alloca((size_t) (SZ))
#define my_afree(PTR) {}
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment