17c478bd9Sstevel@tonic-gate /*
2*9525b14bSRao Shoaib  * Copyright (C) 2004, 2007, 2008  Internet Systems Consortium, Inc. ("ISC")
3*9525b14bSRao Shoaib  * Copyright (C) 1998, 1999, 2001  Internet Software Consortium.
47c478bd9Sstevel@tonic-gate  *
5*9525b14bSRao Shoaib  * Permission to use, copy, modify, and/or distribute this software for any
67c478bd9Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
77c478bd9Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
87c478bd9Sstevel@tonic-gate  *
9*9525b14bSRao Shoaib  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10*9525b14bSRao Shoaib  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11*9525b14bSRao Shoaib  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12*9525b14bSRao Shoaib  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13*9525b14bSRao Shoaib  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14*9525b14bSRao Shoaib  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15*9525b14bSRao Shoaib  * PERFORMANCE OF THIS SOFTWARE.
167c478bd9Sstevel@tonic-gate  */
177c478bd9Sstevel@tonic-gate 
18*9525b14bSRao Shoaib /* $Id: bitypes.h,v 1.7 2008/11/14 02:54:35 tbox Exp $ */
197c478bd9Sstevel@tonic-gate 
207c478bd9Sstevel@tonic-gate #ifndef __BIT_TYPES_DEFINED__
217c478bd9Sstevel@tonic-gate #define __BIT_TYPES_DEFINED__
227c478bd9Sstevel@tonic-gate 
237c478bd9Sstevel@tonic-gate 	/*
247c478bd9Sstevel@tonic-gate 	 * Basic integral types.  Omit the typedef if
257c478bd9Sstevel@tonic-gate 	 * not possible for a machine/compiler combination.
267c478bd9Sstevel@tonic-gate 	 */
27*9525b14bSRao Shoaib 
28*9525b14bSRao Shoaib #ifdef NEED_SOLARIS_BITTYPES
297c478bd9Sstevel@tonic-gate 	typedef /*signed*/ char            int8_t;
307c478bd9Sstevel@tonic-gate 	typedef short                     int16_t;
317c478bd9Sstevel@tonic-gate 	typedef int                       int32_t;
32*9525b14bSRao Shoaib #endif
337c478bd9Sstevel@tonic-gate 	typedef unsigned char            u_int8_t;
347c478bd9Sstevel@tonic-gate 	typedef unsigned short          u_int16_t;
357c478bd9Sstevel@tonic-gate 	typedef unsigned int            u_int32_t;
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate #endif	/* __BIT_TYPES_DEFINED__ */
38