Compile hint.c as C++
This commit is contained in:
parent
d257a8a905
commit
ebf22eee8f
@ -11,7 +11,8 @@ add_library(maxscale-common SHARED
|
||||
externcmd.cc
|
||||
paths.cc
|
||||
hashtable.cc
|
||||
hint.c housekeeper.c load_utils.c log_manager.cc maxscale_pcre2.c misc.c mlist.c modutil.c monitor.c queuemanager.c query_classifier.cc poll.c random_jkiss.c resultset.c router.cc secrets.c server.c service.c session.c spinlock.c thread.c users.c utils.c skygw_utils.cc statistics.c listener.c ssl.c mysql_utils.c mysql_binlog.c modulecmd.c)
|
||||
hint.cc
|
||||
housekeeper.c load_utils.c log_manager.cc maxscale_pcre2.c misc.c mlist.c modutil.c monitor.c queuemanager.c query_classifier.cc poll.c random_jkiss.c resultset.c router.cc secrets.c server.c service.c session.c spinlock.c thread.c users.c utils.c skygw_utils.cc statistics.c listener.c ssl.c mysql_utils.c mysql_binlog.c modulecmd.c)
|
||||
|
||||
if(WITH_JEMALLOC)
|
||||
target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES})
|
||||
|
@ -52,7 +52,7 @@ hint_dup(const HINT *hint)
|
||||
ptr2->type = ptr1->type;
|
||||
if (ptr1->data)
|
||||
{
|
||||
ptr2->data = MXS_STRDUP_A(ptr1->data);
|
||||
ptr2->data = MXS_STRDUP_A((const char*)ptr1->data);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -60,7 +60,7 @@ hint_dup(const HINT *hint)
|
||||
}
|
||||
if (ptr1->value)
|
||||
{
|
||||
ptr2->value = MXS_STRDUP_A(ptr1->value);
|
||||
ptr2->value = MXS_STRDUP_A((const char*)ptr1->value);
|
||||
}
|
||||
else
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user