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