From 2f7d7c6538a0049f81121731a15017e20cc847c4 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Tue, 21 Aug 2012 15:41:34 +0800 Subject: [PATCH] Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS Those are C funcitons Related CL: https://android-review.googlesource.com/#/c/41833/ Change-Id: I4386bcf948ad31c3690c9b7a145103088133d041 --- libm/arm/fenv.h | 5 +++-- libm/include/i387/fenv.h | 4 ++-- libm/mips/fenv.h | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libm/arm/fenv.h b/libm/arm/fenv.h index 893a59664..534b12cbd 100644 --- a/libm/arm/fenv.h +++ b/libm/arm/fenv.h @@ -31,6 +31,8 @@ #include +__BEGIN_DECLS + typedef uint32_t fenv_t; typedef uint32_t fexcept_t; @@ -50,7 +52,6 @@ typedef uint32_t fexcept_t; #define FE_DOWNWARD 0x0003 #define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \ FE_UPWARD | FE_TOWARDZERO) -/* __BEGIN_DECLS */ /* Default floating-point environment */ extern const fenv_t __fe_dfl_env; @@ -212,6 +213,6 @@ fegetexcept(void) #endif /* __BSD_VISIBLE */ -/* __END_DECLS */ +__END_DECLS #endif /* !_FENV_H_ */ diff --git a/libm/include/i387/fenv.h b/libm/include/i387/fenv.h index 710494c00..4e322b76d 100644 --- a/libm/include/i387/fenv.h +++ b/libm/include/i387/fenv.h @@ -32,6 +32,8 @@ #include #include +__BEGIN_DECLS + /* * To preserve binary compatibility with FreeBSD 5.3, we pack the * mxcsr into some reserved fields, rather than changing sizeof(fenv_t). @@ -65,8 +67,6 @@ typedef __uint16_t fexcept_t; #define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \ FE_UPWARD | FE_TOWARDZERO) -__BEGIN_DECLS - /* Default floating-point environment */ extern const fenv_t __fe_dfl_env; #define FE_DFL_ENV (&__fe_dfl_env) diff --git a/libm/mips/fenv.h b/libm/mips/fenv.h index 061a69620..583d0022f 100644 --- a/libm/mips/fenv.h +++ b/libm/mips/fenv.h @@ -29,8 +29,11 @@ #ifndef _FENV_H_ #define _FENV_H_ +#include #include +__BEGIN_DECLS + typedef __uint32_t fenv_t; typedef __uint32_t fexcept_t; @@ -50,7 +53,6 @@ typedef __uint32_t fexcept_t; #define FE_DOWNWARD 0x0003 #define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \ FE_UPWARD | FE_TOWARDZERO) -/* __BEGIN_DECLS */ /* Default floating-point environment */ extern const fenv_t __fe_dfl_env; @@ -212,7 +214,7 @@ fegetexcept(void) #endif /* __BSD_VISIBLE */ -/* __END_DECLS */ +__END_DECLS #endif /* !_FENV_H_ */