1/*	$NetBSD: bitypes.h,v 1.1.1.1 2009/04/12 15:33:54 christos Exp $	*/
2
3/*
4 * Copyright (C) 2004, 2007, 2008  Internet Systems Consortium, Inc. ("ISC")
5 * Copyright (C) 1998, 1999, 2001  Internet Software Consortium.
6 *
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
18 */
19
20/* Id: bitypes.h,v 1.7 2008/11/14 02:54:35 tbox Exp */
21
22#ifndef __BIT_TYPES_DEFINED__
23#define __BIT_TYPES_DEFINED__
24
25	/*
26	 * Basic integral types.  Omit the typedef if
27	 * not possible for a machine/compiler combination.
28	 */
29
30#ifdef NEED_SOLARIS_BITTYPES
31	typedef /*signed*/ char            int8_t;
32	typedef short                     int16_t;
33	typedef int                       int32_t;
34#endif
35	typedef unsigned char            u_int8_t;
36	typedef unsigned short          u_int16_t;
37	typedef unsigned int            u_int32_t;
38
39#endif	/* __BIT_TYPES_DEFINED__ */
40