summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-11-16 07:45:07 -0200
committerDavi Arnaut <davi.arnaut@oracle.com>2010-11-16 07:45:07 -0200
commit0d0b3f8aca8afd10268b1305e94b87f17f07d3b2 (patch)
tree8bb3c24e83c5645c346086318667a4d0cdb7b6a2 /include/m_string.h
parentd6d16303cd5e2ba623f51a115f12954fe4a0ce2c (diff)
parentcd1c6e220de1730615c145b5337f7cce554dfdae (diff)
downloadmariadb-git-0d0b3f8aca8afd10268b1305e94b87f17f07d3b2.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, 3 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 2ec4eb64c8e..bfe632e192d 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -76,7 +76,9 @@ extern "C" {
extern void *(*my_str_malloc)(size_t);
extern void (*my_str_free)(void *);
-#if defined(HAVE_STPCPY)
+#if MY_GNUC_PREREQ(3, 4)
+#define strmov(dest, src) __builtin_stpcpy(dest, src)
+#elif defined(HAVE_STPCPY)
#define strmov(A,B) stpcpy((A),(B))
#ifndef stpcpy
extern char *stpcpy(char *, const char *); /* For AIX with gcc 2.95.3 */