Skip to content

Commit a0d7b0c

Browse files
authored
Merge pull request #28203 from taosdata/fix/buildFailedMain
fix build error
2 parents 0f4456b + 80cdeae commit a0d7b0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/os/osString.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ typedef enum { M2C = 0, C2M } ConvType;
5151
#define strtod STR_TO_LD_FUNC_TAOS_FORBID
5252
#define strtold STR_TO_D_FUNC_TAOS_FORBID
5353
#define strtof STR_TO_F_FUNC_TAOS_FORBID
54+
55+
#ifdef strndup
56+
#undef strndup
57+
#endif
5458
#define strndup STR_TO_F_FUNC_TAOS_FORBID
59+
5560
#endif
5661

5762
#define tstrncpy(dst, src, size) \

0 commit comments

Comments
 (0)