diff --git a/docs/changes.md b/docs/changes.md index 04258425a..e20e4c685 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,4 +1,6 @@ # 最新动态 +2024/11/17 + * 完善 TK_STRINGIZE(感谢兆坤提供补丁) 2024/11/15 * 修复拼写错误(感谢兆坤提供补丁) diff --git a/src/tkc/types_def.h b/src/tkc/types_def.h index bdb9c94c9..fce2ef224 100644 --- a/src/tkc/types_def.h +++ b/src/tkc/types_def.h @@ -125,7 +125,8 @@ typedef int socklen_t; #define FALSE 0 #endif /*FALSE*/ -#define TK_STRINGIZE(symbol) #symbol +#define _TK_STRINGIZE_(symbol) #symbol +#define TK_SRTINGIZE(macro) _TK_STRINGIZE_(macro) #if defined(__GNUC__) && !defined(__cplusplus) typedef _Bool bool_t;