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
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
enum pthread_state {
|
enum pthread_state {
|
||||||
/* The thread structure is unallocated and available for reuse. */
|
/* The thread structure is unallocated and available for reuse. */
|
||||||
PTHREAD_TERMINATED = 0,
|
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);
|
int pthread_setspecific(pthread_key_t key, const void *value);
|
||||||
void *pthread_getspecific(pthread_key_t key);
|
void *pthread_getspecific(pthread_key_t key);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_H_ */
|
#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue