From: Teodora Serbanescu Date: Mon, 3 Jun 2019 15:16:40 +0000 (+0300) Subject: include/pthread.h: Guard C code for C++ X-Git-Tag: RELEASE-0.4~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6eb11543fc22ea8befc177592cb00403b1c68432;p=unikraft%2Flibs%2Fpthread-embedded.git include/pthread.h: Guard C code for C++ Signed-off-by: Teodora Serbanescu Reviewed-by: Florian Schmidt --- diff --git a/include/pthread.h b/include/pthread.h index 8cd1ade..799f39b 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -22,13 +22,14 @@ #ifndef __GLUE_PTHREAD_H__ #define __GLUE_PTHREAD_H__ -#include_next - -/* C functions not implemented in pthread-embedded */ #ifdef __cplusplus extern "C" { #endif +/* The C code in pthread.h is not guarded for C++ */ +#include_next + +/* C functions not implemented in pthread-embedded */ int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize); int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize);