xref: /onnv-gate/usr/src/cmd/sgs/libconv/common/_conv.h (revision 1618:8c9a4f31d225)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*1618Srie  * Common Development and Distribution License (the "License").
6*1618Srie  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
21*1618Srie 
220Sstevel@tonic-gate /*
23*1618Srie  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1618Srie  * Use is subject to license terms.
250Sstevel@tonic-gate  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate #ifndef	__CONV_DOT_H
280Sstevel@tonic-gate #define	__CONV_DOT_H
290Sstevel@tonic-gate 
300Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
310Sstevel@tonic-gate 
320Sstevel@tonic-gate /*
330Sstevel@tonic-gate  * Local include file for conversion library.
340Sstevel@tonic-gate  */
350Sstevel@tonic-gate #include <conv.h>
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #ifdef	__cplusplus
380Sstevel@tonic-gate extern "C" {
390Sstevel@tonic-gate #endif
400Sstevel@tonic-gate 
410Sstevel@tonic-gate /*
42*1618Srie  * Some format strings differ depending on whether they are used for 32-bit
43*1618Srie  * or 64-bit values.
440Sstevel@tonic-gate  */
45*1618Srie #if	defined(_ELF64)
46*1618Srie #define	MSG_GBL_FMT_DEC		MSG_GBL_FMT_DEC_64
47*1618Srie #define	MSG_GBL_FMT_DECS	MSG_GBL_FMT_DECS_64
48*1618Srie #define	MSG_GBL_FMT_HEX		MSG_GBL_FMT_HEX_64
49*1618Srie #define	MSG_GBL_FMT_HEXS	MSG_GBL_FMT_HEXS_64
50*1618Srie 
51*1618Srie #define	MSG_SYM_FMT_VAL		MSG_SYM_FMT_VAL_64
52*1618Srie #else
53*1618Srie #define	MSG_GBL_FMT_DEC		MSG_GBL_FMT_DEC_32
54*1618Srie #define	MSG_GBL_FMT_DECS	MSG_GBL_FMT_DECS_32
55*1618Srie #define	MSG_GBL_FMT_HEX		MSG_GBL_FMT_HEX_32
56*1618Srie #define	MSG_GBL_FMT_HEXS	MSG_GBL_FMT_HEXS_32
57*1618Srie 
58*1618Srie #define	MSG_SYM_FMT_VAL		MSG_SYM_FMT_VAL_32
59*1618Srie #endif
600Sstevel@tonic-gate 
610Sstevel@tonic-gate #ifdef	__cplusplus
620Sstevel@tonic-gate }
630Sstevel@tonic-gate #endif
640Sstevel@tonic-gate 
650Sstevel@tonic-gate #endif	/* __CONV_DOT_H */
66