src/solaris/native/common/jdk_util_md.h

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 21,26 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! // Currently, there are no unix specific functions defined. --- 21,46 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! #ifndef JDK_UTIL_MD_H ! #define JDK_UTIL_MD_H ! ! // checking for nanness ! #ifdef __solaris__ ! #include <ieeefp.h> ! #define ISNANF(f) isnanf(f) ! #define ISNAND(d) isnand(d) ! #elif defined(MACOSX) ! #include <math.h> ! #define ISNANF(f) isnan(f) ! #define ISNAND(d) isnan(d) ! #elif defined(__linux__) || defined(_ALLBSD_SOURCE) ! #include <math.h> ! #define ISNANF(f) isnanf(f) ! #define ISNAND(d) isnan(d) ! #else ! #error "missing platform-specific definition here" ! #endif ! ! #endif /* JDK_UTIL_MD_H */