blob: f9e6d5a63fdcc81ee56e19a15cafd14379a4f942 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Index: b/usr/src/lib/libc/port/fp/fp_data.c
===================================================================
--- a/usr/src/lib/libc/port/fp/fp_data.c
+++ b/usr/src/lib/libc/port/fp/fp_data.c
@@ -45,10 +45,10 @@
#include <sys/feature_tests.h>
-#undef _STDC_C99 /* to force the definition of '_h_val' */
-#undef __C99FEATURES__ /* to force the definition of '_h_val' */
-
-#include <math.h> /* for '_h_val' */
+typedef union _h_val {
+ unsigned long _i[sizeof (double) / sizeof (unsigned long)];
+ double _d;
+} _h_val;
/* IEEE infinity */
const _h_val __huge_val =
|