pthread: wrap header with extern C
Other posix headers were already wrapped, this one seems to have been missed so it can be compiled with C++ Signed-off-by: Nicholas Lowell <nlowell@lexmark.com>
This commit is contained in:
parent
dab67c35f1
commit
b096fcc476
|
@ -17,6 +17,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum pthread_state {
|
||||
/* The thread structure is unallocated and available for reuse. */
|
||||
PTHREAD_TERMINATED = 0,
|
||||
|
@ -518,4 +522,8 @@ int pthread_key_delete(pthread_key_t key);
|
|||
int pthread_setspecific(pthread_key_t key, const void *value);
|
||||
void *pthread_getspecific(pthread_key_t key);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_H_ */
|
||||
|
|
Loading…
Reference in a new issue