From 6eb11543fc22ea8befc177592cb00403b1c68432 Mon Sep 17 00:00:00 2001 From: Teodora Serbanescu Date: Mon, 3 Jun 2019 18:16:40 +0300 Subject: [PATCH] include/pthread.h: Guard C code for C++ Signed-off-by: Teodora Serbanescu Reviewed-by: Florian Schmidt --- include/pthread.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.39.5