diff options
author | unknown <lenz@mysql.com> | 2002-07-25 18:12:18 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2002-07-25 18:12:18 +0200 |
commit | 0f6e63367e7e352f0b691286e90a3d1718bafe79 (patch) | |
tree | 4bd6edf1869a6c847e00c4ca618d1dfd6bfa8127 /include/my_sys.h | |
parent | b445036849a6cd15c0f604b61fbe26655d12b0e8 (diff) | |
download | mariadb-git-0f6e63367e7e352f0b691286e90a3d1718bafe79.tar.gz |
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
Diffstat (limited to 'include/my_sys.h')
-rw-r--r-- | include/my_sys.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 0236f7007a2..f310b3c3811 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -164,8 +164,10 @@ extern my_string my_strdup(const char *from,myf MyFlags); #undef alloca #define alloca(size) __builtin_alloca (size) #else /* xlc */ +#ifdef _AIX #pragma alloca -#endif /* GCC. */ +#endif /* _AIX */ +#endif /* __GNUC__ */ #define my_alloca(SZ) alloca((size_t) (SZ)) #define my_afree(PTR) {} #else |