Commit 0f6e6336 authored by unknown's avatar unknown

Added an "#ifdef _AIX" around the "#pragma #alloca" in include/my_sys.h

since it is AIX specific only and compilers on other platforms issued
warnings about it.


include/my_sys.h:
  "#pragma alloca" is for IBM AIX only
parent b4450368
...@@ -164,8 +164,10 @@ extern my_string my_strdup(const char *from,myf MyFlags); ...@@ -164,8 +164,10 @@ extern my_string my_strdup(const char *from,myf MyFlags);
#undef alloca #undef alloca
#define alloca(size) __builtin_alloca (size) #define alloca(size) __builtin_alloca (size)
#else /* xlc */ #else /* xlc */
#ifdef _AIX
#pragma alloca #pragma alloca
#endif /* GCC. */ #endif /* _AIX */
#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