Author: sebor Date: Tue Apr 10 21:56:02 2007 New Revision: 527385 URL: http://svn.apache.org/viewvc?view=rev&rev=527385 Log: 2007-04-10 Martin Sebor * limits (_RWSTD_ROUND_STYLE): #defined to round_indeterminate when the configuration macro _RWSTD_FLT_ROUNDS is not #defined. Modified: incubator/stdcxx/trunk/include/limits Modified: incubator/stdcxx/trunk/include/limits URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/limits?view=diff&rev=527385&r1=527384&r2=527385 ============================================================================== --- incubator/stdcxx/trunk/include/limits (original) +++ incubator/stdcxx/trunk/include/limits Tue Apr 10 21:56:02 2007 @@ -290,12 +290,16 @@ round_toward_neg_infinity = 3 }; -#define _RWSTD_ROUND_STYLE \ - 0 == _RWSTD_FLT_ROUNDS ? round_toward_zero \ - : 1 == _RWSTD_FLT_ROUNDS ? round_to_nearest \ - : 2 == _RWSTD_FLT_ROUNDS ? round_toward_infinity \ - : 3 == _RWSTD_FLT_ROUNDS ? round_toward_neg_infinity \ - : round_indeterminate +#ifdef _RWSTD_FLT_ROUNDS +# define _RWSTD_ROUND_STYLE \ + 0 == _RWSTD_FLT_ROUNDS ? round_toward_zero \ + : 1 == _RWSTD_FLT_ROUNDS ? round_to_nearest \ + : 2 == _RWSTD_FLT_ROUNDS ? round_toward_infinity \ + : 3 == _RWSTD_FLT_ROUNDS ? round_toward_neg_infinity \ + : round_indeterminate +#else // if !defined (_RWSTD_FLT_ROUNDS) +# define _RWSTD_ROUND_STYLE round_indeterminate +#endif // _RWSTD_FLT_ROUNDS enum float_denorm_style