complex.h revision 25c28e83beb90e7c80452a7c818c5e6f73a07dc8
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _COMPLEX_H
#define _COMPLEX_H
#ifdef __cplusplus
extern "C" {
#endif
/* #if !defined(__cplusplus) */
/*
* Compilation environments for Solaris must provide the _Imaginary datatype
* and the compiler intrinsics _Complex_I and _Imaginary_I
*/
#if defined(__SUNPRO_C)
#define _Complex_I _Complex_I
#define _Imaginary_I _Imaginary_I
#else
#define _Complex_I 1.0fi
#define _Imaginary_I 1.0fi
#endif
#define complex _Complex
#define imaginary _Imaginary
#undef I
#define I _Imaginary_I
#if defined(__PRAGMA_REDEFINE_EXTNAME)
#else
#endif
/* #endif */ /* !defined(__cplusplus) */
#ifdef __cplusplus
}
#endif
#endif /* _COMPLEX_H */