From: MSV <> Date: Thu, 19 May 2011 10:35:25 +0000 (+0000) Subject: OCC22256 Add mechanism based on malloc/free callback for debugging memory problems X-Git-Tag: V6_5_1~31 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=213cb88863fe4eb3f05f9488860b8b3f88f2e1c2;p=occt-copy.git OCC22256 Add mechanism based on malloc/free callback for debugging memory problems --- diff --git a/src/OSD/OSD_MAllocHook.cxx b/src/OSD/OSD_MAllocHook.cxx index 8ed4385a5d..485a44850f 100755 --- a/src/OSD/OSD_MAllocHook.cxx +++ b/src/OSD/OSD_MAllocHook.cxx @@ -15,6 +15,10 @@ #include #include +#ifndef SIZE_MAX +#define SIZE_MAX UINT_MAX +#endif + #define MAX_STR 80 static OSD_MAllocHook::Callback* MypCurrentCallback = NULL;