Commit e22a2a83 authored by unknown's avatar unknown

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


include/my_sys.h:
   - Only define alloca as a compiler builtin, if we use GCC and there
     is no alloca.h installed
parent 9d7b069c
...@@ -150,6 +150,9 @@ extern my_string my_strdup(const char *from,myf MyFlags); ...@@ -150,6 +150,9 @@ extern my_string my_strdup(const char *from,myf MyFlags);
#if defined(_AIX) && !defined(__GNUC__) #if defined(_AIX) && !defined(__GNUC__)
#pragma alloca #pragma alloca
#endif /* _AIX */ #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_alloca(SZ) alloca((size_t) (SZ))
#define my_afree(PTR) {} #define my_afree(PTR) {}
#else #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