complex.h: add a C++ guard.
This commit is contained in:
@@ -15,6 +15,10 @@
|
|||||||
#define complex _Complex
|
#define complex _Complex
|
||||||
#define I _Complex_I
|
#define I _Complex_I
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern double cabs(double complex);
|
extern double cabs(double complex);
|
||||||
extern float cabsf(float complex);
|
extern float cabsf(float complex);
|
||||||
extern long double cabsl(long double 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 ctanhl(long double complex);
|
||||||
extern long double complex ctanl(long double complex);
|
extern long double complex ctanl(long double complex);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _COMPLEX_H_ */
|
#endif /* _COMPLEX_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user