aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/std/types.h
blob: ebd4ea73f2b5e2594d2eb16166d904542e249fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Portable common datatype declarations.
 * $Id$
 * Copyright (c) 1997 by Tycho Softworks.
 * For conditions of distribution and reuse see product license.
 */

#ifndef	__STD_TYPES_H__
#define	__STD_TYPES_H__

#ifndef	__CONFIG_H__
#include <config.h>
#endif

#include <sys/types.h>
#include <stdlib.h>

#ifdef	UCHAR_T_MISSING
typedef	unsigned char	uchar;
#endif

#ifdef	USHORT_T_MISSING
typedef	unsigned short	ushort;
#endif

#ifdef	ULONG_T_MISSING
typedef	unsigned long	ulong;
#endif

#ifdef	__cplusplus
enum
{
	FALSE=0,
	TRUE
};
#else
typedef	enum
{
	FALSE=0,
	TRUE
}	bool;
#endif

typedef	void	*ptr_t;

#ifdef SIZE_T_MISSING
typedef	unsigned int size_t;
#endif

#ifdef SSIZE_T_MISSING
typedef int ssize_t;
#endif

#endif