Compile maxscale_pcre2.c as C++
This commit is contained in:
parent
96df523ce4
commit
604526667c
@ -14,7 +14,8 @@ add_library(maxscale-common SHARED
|
||||
housekeeper.cc
|
||||
paths.cc
|
||||
load_utils.cc
|
||||
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)
|
||||
log_manager.cc
|
||||
maxscale_pcre2.cc 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})
|
||||
|
@ -59,7 +59,7 @@ mxs_pcre2_result_t mxs_pcre2_substitute(pcre2_code *re, const char *subject, con
|
||||
(PCRE2_SPTR) replace, PCRE2_ZERO_TERMINATED,
|
||||
(PCRE2_UCHAR*) *dest, size)) == PCRE2_ERROR_NOMEMORY)
|
||||
{
|
||||
char *tmp = MXS_REALLOC(*dest, *size * 2);
|
||||
char *tmp = (char*)MXS_REALLOC(*dest, *size * 2);
|
||||
if (tmp == NULL)
|
||||
{
|
||||
break;
|
Loading…
x
Reference in New Issue
Block a user