From d7ff00a9d2f0aeec6dcb9dfa05df1622406e8f7a Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Fri, 21 Apr 2023 08:47:43 +0000 Subject: [PATCH] change write opt --- include/os/osMemory.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/os/osMemory.h b/include/os/osMemory.h index ee21d28fb8..18cd0d9cc6 100644 --- a/include/os/osMemory.h +++ b/include/os/osMemory.h @@ -22,19 +22,19 @@ extern "C" { // If the error is in a third-party library, place this header file under the third-party library header file. // When you want to use this feature, you should find or add the same function in the following sectio -#if !defined(WINDOWS) +// #if !defined(WINDOWS) -#ifndef ALLOW_FORBID_FUNC -#define malloc MALLOC_FUNC_TAOS_FORBID -#define calloc CALLOC_FUNC_TAOS_FORBID -#define realloc REALLOC_FUNC_TAOS_FORBID -#define free FREE_FUNC_TAOS_FORBID -#ifdef strdup -#undef strdup -#define strdup STRDUP_FUNC_TAOS_FORBID -#endif -#endif // ifndef ALLOW_FORBID_FUNC -#endif // if !defined(WINDOWS) +// #ifndef ALLOW_FORBID_FUNC +// #define malloc MALLOC_FUNC_TAOS_FORBID +// #define calloc CALLOC_FUNC_TAOS_FORBID +// #define realloc REALLOC_FUNC_TAOS_FORBID +// #define free FREE_FUNC_TAOS_FORBID +// #ifdef strdup +// #undef strdup +// #define strdup STRDUP_FUNC_TAOS_FORBID +// #endif +// #endif // ifndef ALLOW_FORBID_FUNC +// #endif // if !defined(WINDOWS) // // #define taosMemoryFree malloc // #define taosMemoryMalloc malloc -- GitLab