Commit abd3817f by Bruce Korb

reorder struct exception hacks and only bypass glibc for proper C++ handling

From-SVN: r76246
parent 0144d441
...@@ -7,16 +7,16 @@ ...@@ -7,16 +7,16 @@
This had to be done to correct non-standard usages in the This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */ original, manufacturer supplied header file. */
#ifndef FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL
#define FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL 1
struct exception;
#ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION #ifndef FIXINC_WRAP_MATH_H_MATH_EXCEPTION
#define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1 #define FIXINC_WRAP_MATH_H_MATH_EXCEPTION 1
#ifdef __cplusplus #ifdef __cplusplus
#define exception __math_exception #define exception __math_exception
#endif #endif
#ifndef FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE
#define FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE 1
struct exception;
#if defined( BROKEN_CABS_CHECK ) #if defined( BROKEN_CABS_CHECK )
...@@ -31,6 +31,11 @@ struct exception; ...@@ -31,6 +31,11 @@ struct exception;
#endif /* BROKEN_CABS_CHECK */ #endif /* BROKEN_CABS_CHECK */
#if defined( EXCEPTION_STRUCTURE_CHECK )
extern int matherr();
#endif /* EXCEPTION_STRUCTURE_CHECK */
#if defined( HPUX11_CPP_POW_INLINE_CHECK ) #if defined( HPUX11_CPP_POW_INLINE_CHECK )
#endif /* HPUX11_CPP_POW_INLINE_CHECK */ #endif /* HPUX11_CPP_POW_INLINE_CHECK */
...@@ -100,11 +105,6 @@ int foo; ...@@ -100,11 +105,6 @@ int foo;
#endif /* STRICT_ANSI_NOT_CTD_CHECK */ #endif /* STRICT_ANSI_NOT_CTD_CHECK */
#if defined( SUNOS_MATHERR_DECL_CHECK )
extern int matherr();
#endif /* SUNOS_MATHERR_DECL_CHECK */
#if defined( SVR4__P_CHECK ) #if defined( SVR4__P_CHECK )
#ifndef __P #ifndef __P
#define __P(a) a #define __P(a) a
...@@ -126,10 +126,10 @@ extern double atof(const char *__nptr); ...@@ -126,10 +126,10 @@ extern double atof(const char *__nptr);
#if defined( WINDISS_MATH2_CHECK ) #if defined( WINDISS_MATH2_CHECK )
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* WINDISS_MATH2_CHECK */ #endif /* WINDISS_MATH2_CHECK */
#endif /* FIXINC_WRAP_MATH_H_EXCEPTION_STRUCTURE */
#ifdef __cplusplus #ifdef __cplusplus
#undef exception #undef exception
#endif #endif
#endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */ #endif /* FIXINC_WRAP_MATH_H_MATH_EXCEPTION */
#endif /* FIXINC_WRAP_MATH_H_SUNOS_MATHERR_DECL */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment