From e25f9933858aab6503f32df3af579dadb9d5c25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 5 Oct 2016 09:17:19 +0200 Subject: [PATCH] complex.h: add a C++ guard. --- headers/posix/complex.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/headers/posix/complex.h b/headers/posix/complex.h index cfdf0bfb93..1e1e92c272 100644 --- a/headers/posix/complex.h +++ b/headers/posix/complex.h @@ -15,6 +15,10 @@ #define complex _Complex #define I _Complex_I +#ifdef __cplusplus +extern "C" { +#endif + extern double cabs(double complex); extern float cabsf(float complex); extern long double cabsl(long double complex); @@ -82,4 +86,8 @@ extern float complex ctanhf(float complex); extern long double complex ctanhl(long double complex); extern long double complex ctanl(long double complex); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* _COMPLEX_H_ */