From acc61ed13db50936732baee259a22849b9014695 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 22 Mar 2017 15:55:29 +0200 Subject: [PATCH] Compile alloc.c as C++ --- server/core/CMakeLists.txt | 3 ++- server/core/{alloc.c => alloc.cc} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename server/core/{alloc.c => alloc.cc} (100%) diff --git a/server/core/CMakeLists.txt b/server/core/CMakeLists.txt index f2b05789e..0a346cc09 100644 --- a/server/core/CMakeLists.txt +++ b/server/core/CMakeLists.txt @@ -1,6 +1,7 @@ add_library(maxscale-common SHARED adminusers.cc - alloc.c authenticator.c atomic.c buffer.c config.c config_runtime.c dcb.c filter.c filter.cc externcmd.c paths.c hashtable.c 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) + alloc.cc + authenticator.c atomic.c buffer.c config.c config_runtime.c dcb.c filter.c filter.cc externcmd.c paths.c hashtable.c 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) if(WITH_JEMALLOC) target_link_libraries(maxscale-common ${JEMALLOC_LIBRARIES}) diff --git a/server/core/alloc.c b/server/core/alloc.cc similarity index 100% rename from server/core/alloc.c rename to server/core/alloc.cc