summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-11-17 07:50:19 -0200
committerDavi Arnaut <davi.arnaut@oracle.com>2010-11-17 07:50:19 -0200
commit46dd9e86580e523c2c8a1503552be41751f31229 (patch)
tree6048a7af5eb23d46d42481aa5a7dcec42ecc26da /include/m_string.h
parentb0185d2a819193621b0e18b62d88b7ce84bead71 (diff)
parentaaa370f5d7fa08b4b6c7fb56bd54f84829626e07 (diff)
downloadmariadb-git-46dd9e86580e523c2c8a1503552be41751f31229.tar.gz
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_string.h b/include/m_string.h
index bfe632e192d..6557ae36c9b 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -76,8 +76,8 @@ extern "C" {
extern void *(*my_str_malloc)(size_t);
extern void (*my_str_free)(void *);
-#if MY_GNUC_PREREQ(3, 4)
-#define strmov(dest, src) __builtin_stpcpy(dest, src)
+#if defined(HAVE_STPCPY) && MY_GNUC_PREREQ(3, 4)
+#define strmov(A,B) __builtin_stpcpy((A),(B))
#elif defined(HAVE_STPCPY)
#define strmov(A,B) stpcpy((A),(B))
#ifndef stpcpy