1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-419 ensure that all HAVE_XXX constants can be set by cmake

add missing checks to configure.cmake
remove dead code and unused HAVE_xxx constants from the sources
This commit is contained in:
Sergei Golubchik
2012-07-31 19:29:07 +02:00
parent 42ea25d4c5
commit 0117a92fed
26 changed files with 31 additions and 240 deletions

View File

@@ -62,13 +62,9 @@
# define bmove_align(A,B,C) memcpy((A),(B),(C))
#if !defined(HAVE_BCMP)
# define bcmp(A,B,C) memcmp((A),(B),(C))
#endif
#if !defined(bzero) && (!defined(HAVE_BZERO) || !HAVE_DECL_BZERO || defined(_AIX))
/* See autoconf doku: "HAVE_DECL_symbol" will be defined after configure, to 0 or 1 */
/* AIX has bzero() as a function, but the declaration prototype is strangely hidden */
#if !defined(bzero)
# define bzero(A,B) memset((A),0,(B))
#endif