From 035861bf52834f01a2c407a5c5facba32c51c173 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Sun, 8 Oct 2023 00:50:14 +0300 Subject: [PATCH] disable new/mallloc override on non-windows platforms( #299 ) --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index d04bc604..5767b69b 100644 --- a/wscript +++ b/wscript @@ -239,6 +239,10 @@ def define_platform(conf): '_DLL_EXT=.so' ]) + if conf.env.DEST_OS != 'win32': + conf.define('NO_MALLOC_OVERRIDE', 1) + conf.define('NO_MEMOVERRIDE_NEW_DELETE', 1) + if conf.options.DEBUG_ENGINE: conf.env.append_unique('DEFINES', [ 'DEBUG', '_DEBUG'