change write opt

This commit is contained in:
yihaoDeng 2023-04-21 08:47:43 +00:00
parent eff4257dc6
commit d7ff00a9d2
1 changed files with 12 additions and 12 deletions

View File

@ -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. // 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 // 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 // #ifndef ALLOW_FORBID_FUNC
#define malloc MALLOC_FUNC_TAOS_FORBID // #define malloc MALLOC_FUNC_TAOS_FORBID
#define calloc CALLOC_FUNC_TAOS_FORBID // #define calloc CALLOC_FUNC_TAOS_FORBID
#define realloc REALLOC_FUNC_TAOS_FORBID // #define realloc REALLOC_FUNC_TAOS_FORBID
#define free FREE_FUNC_TAOS_FORBID // #define free FREE_FUNC_TAOS_FORBID
#ifdef strdup // #ifdef strdup
#undef strdup // #undef strdup
#define strdup STRDUP_FUNC_TAOS_FORBID // #define strdup STRDUP_FUNC_TAOS_FORBID
#endif // #endif
#endif // ifndef ALLOW_FORBID_FUNC // #endif // ifndef ALLOW_FORBID_FUNC
#endif // if !defined(WINDOWS) // #endif // if !defined(WINDOWS)
// // #define taosMemoryFree malloc // // #define taosMemoryFree malloc
// #define taosMemoryMalloc malloc // #define taosMemoryMalloc malloc