1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP
26 #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP
27
28 #include "prims/jni.h"
29
30 // This file holds compiler-dependent includes,
31 // globally used constants & types, class (forward)
32 // declarations and a few frequently used utility functions.
33
34
35 # include <ctype.h>
36 # include <dirent.h>
37 # include <string.h>
38 # include <strings.h> // for bsd'isms
39 # include <stdarg.h>
40 # include <stddef.h> // for offsetof
41 # include <stdio.h>
42 # include <stdlib.h>
43 # include <wchar.h>
44 # include <stdarg.h>
45 #ifdef SOLARIS
46 # include <ieeefp.h>
47 #endif
48 # include <math.h>
49 #ifdef LINUX
50 #ifndef FP_PZERO
51 // Linux doesn't have positive/negative zero
52 #define FP_PZERO FP_ZERO
53 #endif
54 #ifndef fpclass
55 #define fpclass fpclassify
56 #endif
|
1 /*
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP
26 #define SHARE_VM_UTILITIES_GLOBALDEFINITIONS_SPARCWORKS_HPP
27
28 #include "prims/jni.h"
29
30 // This file holds compiler-dependent includes,
31 // globally used constants & types, class (forward)
32 // declarations and a few frequently used utility functions.
33
34
35 # include <ctype.h>
36 #define __USE_LEGACY_PROTOTYPES__
37 # include <dirent.h>
38 #undef __USE_LEGACY_PROTOTYPES__
39 # include <string.h>
40 # include <strings.h> // for bsd'isms
41 # include <stdarg.h>
42 # include <stddef.h> // for offsetof
43 # include <stdio.h>
44 # include <stdlib.h>
45 # include <wchar.h>
46 # include <stdarg.h>
47 #ifdef SOLARIS
48 # include <ieeefp.h>
49 #endif
50 # include <math.h>
51 #ifdef LINUX
52 #ifndef FP_PZERO
53 // Linux doesn't have positive/negative zero
54 #define FP_PZERO FP_ZERO
55 #endif
56 #ifndef fpclass
57 #define fpclass fpclassify
58 #endif
|