Attachment 'tao_ss12hpc.diff'
Download 1 diff -ru a/include/tao_sys.h b/include/tao_sys.h
2 --- a/include/tao_sys.h 2007-06-26 21:21:20.000000000 +0200
3 +++ b/include/tao_sys.h 2009-10-01 15:10:09.883728693 +0200
4 @@ -45,6 +45,19 @@
5
6 #else
7
8 +// Sun Studio 12 C++ seems not to have ``isinf``.
9 +// Test taken from Sun Solaris 10 ``/usr/include/math.h``.
10 +#if !defined(_STDC_C99) && _XOPEN_SOURCE - 0 < 600 && !defined(__C99FEATURES__)
11 +
12 +// From above:
13 +// This test works because Inf - Inf = NaN, NaN - NaN = NaN,
14 +// and NaN is not equal to anything else.
15 +#define TaoNaN(a) ((a) != (a))
16 +#define TaoInf(a) (((a) == (a)) && ((a) - (a)) != 0.0)
17 +#define TaoInfOrNaN(a) (((a) - (a)) != 0.0)
18 +
19 +#else
20 +
21 // These tests are from ISO C99
22 #define TaoNaN(a) isnan(a)
23 #define TaoInf(a) isinf(a)
24 @@ -52,6 +65,8 @@
25
26 #endif
27
28 +#endif
29 +
30 #define TAO_DEFAULT -13456834
31 #define TAO_INFINITY 1.0e20
32 #define TAO_NINFINITY -1.0e20
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.