From 1647490767c7ead3c415e0cfde85311547ccb4e4 Mon Sep 17 00:00:00 2001 From: zzy <2450266535@qq.com> Date: Wed, 25 Oct 2023 23:20:00 +0800 Subject: [PATCH] =?UTF-8?q?dev=20=E4=BF=AE=E5=A4=8Dtthread=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/tthread.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/tthread.h b/include/tthread.h index 2b2fb2d..5fd11cb 100644 --- a/include/tthread.h +++ b/include/tthread.h @@ -1,4 +1,4 @@ -#ifndef _TTHERAD_H_ +#ifndef _TTHREAD_H_ #define _TTHREAD_H_ #include "sysenv.h" @@ -32,11 +32,11 @@ typedef pthread_cond_t COND; #endif #endif -// #ifdef __cplusplus -// extern "C" { -// #endif + #ifdef __cplusplus + extern "C" { + #endif -enum { +enum ERR_THREAD { ERR_THREAD_SUCCESS, ERR_THREAD_CREATE, @@ -291,8 +291,8 @@ static inline int tvsnprintf(MUTEX* mutex, char* const buffer, return res; } -// #ifdef __cplusplus -// } -// #endif + #ifdef __cplusplus + } + #endif -#endif // _TTHREAD_H_ \ No newline at end of file +#endif //_TTHREAD_H_ \ No newline at end of file