diff --git a/docs/changes.md b/docs/changes.md index f7b9dff30..d4f5aa818 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -2,6 +2,7 @@ 2024/11/18 * 完善 atomic(感谢兆坤提供补丁) + * 修复拼写错误(感谢兆坤提供补丁) 2024/11/17 * 完善 TK_STRINGIZE(感谢兆坤提供补丁) diff --git a/src/tkc/atomic.h b/src/tkc/atomic.h index c4cecfe67..3082e285c 100644 --- a/src/tkc/atomic.h +++ b/src/tkc/atomic.h @@ -713,13 +713,13 @@ static ret_t tk_atomic_fetch_sub(tk_atomic_t* atomic, value_t* v) { } #else /* 不支持原子操作,已退化为互斥锁,编译时请指定C11以上的C语言标准,以确保支持原子操作! */ -#pragma message(__FILE__ "(" TK_SRTINGIZE( \ +#pragma message(__FILE__ "(" TK_STRINGIZE( \ __LINE__) "): " \ "Warning : Atomic operation is not supported and have degenerated into mutex, please specify the C language standard above C11 when compiling to ensure that atomic operation is supported!") #ifdef __cplusplus -#pragma message("__cplusplus = " TK_SRTINGIZE(__cplusplus)) +#pragma message("__cplusplus = " TK_STRINGIZE(__cplusplus)) #else -#pragma message("__STDC_VERSION__ = " TK_SRTINGIZE(__STDC_VERSION__)) +#pragma message("__STDC_VERSION__ = " TK_STRINGIZE(__STDC_VERSION__)) #endif /* __cplusplus */ #ifdef __STDC_NO_ATOMICS__ #pragma message("__STDC_NO_ATOMICS__ = TRUE") diff --git a/src/tkc/types_def.h b/src/tkc/types_def.h index fce2ef224..0a36e9969 100644 --- a/src/tkc/types_def.h +++ b/src/tkc/types_def.h @@ -126,7 +126,7 @@ typedef int socklen_t; #endif /*FALSE*/ #define _TK_STRINGIZE_(symbol) #symbol -#define TK_SRTINGIZE(macro) _TK_STRINGIZE_(macro) +#define TK_STRINGIZE(macro) _TK_STRINGIZE_(macro) #if defined(__GNUC__) && !defined(__cplusplus) typedef _Bool bool_t;