Enclosed functions in fenv.h with __BEGIN_DECLS/__END_DECLS

Those are C funcitons

Change-Id: I8f481f29b278b8f28d9ce04635d0f04e9e148cb5
This commit is contained in:
Andrew Hsieh
2012-08-20 19:29:25 +08:00
parent 4d39411f7d
commit a5280d312d
3 changed files with 9 additions and 6 deletions

View File

@@ -31,6 +31,8 @@
#include <sys/types.h>
__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_ */