From e3b8d45c938898122b1b550e2d2766da12758232 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 15 Apr 2024 13:02:12 +0200 Subject: [PATCH] Cleanup: move mallocn to c++ Required for a cleaner solution for #120632. --- intern/guardedalloc/CMakeLists.txt | 2 +- intern/guardedalloc/intern/{mallocn.c => mallocn.cc} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename intern/guardedalloc/intern/{mallocn.c => mallocn.cc} (99%) diff --git a/intern/guardedalloc/CMakeLists.txt b/intern/guardedalloc/CMakeLists.txt index 92188b4e0ac..b2db54c0e6e 100644 --- a/intern/guardedalloc/CMakeLists.txt +++ b/intern/guardedalloc/CMakeLists.txt @@ -20,7 +20,7 @@ set(INC_SYS set(SRC ./intern/leak_detector.cc - ./intern/mallocn.c + ./intern/mallocn.cc ./intern/mallocn_guarded_impl.cc ./intern/mallocn_lockfree_impl.cc ./intern/memory_usage.cc diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.cc similarity index 99% rename from intern/guardedalloc/intern/mallocn.c rename to intern/guardedalloc/intern/mallocn.cc index 04f06e950ce..256d78e21db 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.cc @@ -13,7 +13,7 @@ /* to ensure strict conversions */ #include "../../source/blender/blenlib/BLI_strict_flags.h" -#include +#include #include "mallocn_intern.h"