diff options
author | unknown <lenz@mysql.com> | 2002-07-03 18:45:38 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2002-07-03 18:45:38 +0200 |
commit | 0670fc939be40a938b401590b3a821e0c28ff91b (patch) | |
tree | 65a935ba87804f544829b381550784cca307e304 /include | |
parent | ef8712b2c7384d88b94c6c7542c3afa617ca66ca (diff) | |
download | mariadb-git-0670fc939be40a938b401590b3a821e0c28ff91b.tar.gz |
Added a compile fix for AIX to include/my_sys.h
Corrected some comments that were using C++-style instead of C-style
include/my_sys.h:
Portability fix: define alloca as a compiler builtin on systems that have
gcc but no alloca.h (e.g. some IBM AIX flavors), use "#pragma alloca" for
IBMs compiler (xlc)
mysys/my_getopt.c:
Replace C++-style comments with C-style comments
strings/ctype-latin1_de.c:
Replace C++-style comments with C-style comments
strings/ctype-tis620.c:
Replace C++-style comments with C-style comments
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 0b191c17173..664131e8187 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -159,6 +159,13 @@ extern my_string my_strdup(const char *from,myf MyFlags); #define ORIG_CALLER_INFO /* nothing */ #endif #ifdef HAVE_ALLOCA +#ifdef __GNUC__ +/* Remove any previous definitions. */ +#undef alloca +#define alloca(size) __builtin_alloca (size) +#else /* xlc */ + #pragma alloca +#endif /* GCC. */ #define my_alloca(SZ) alloca((size_t) (SZ)) #define my_afree(PTR) {} #else |