1.1 --- a/epoc32/include/stdapis/stdint.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stdint.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,106 @@
1.4 -stdint.h
1.5 +/*-
1.6 + * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
1.7 + * All rights reserved.
1.8 + *
1.9 + * Redistribution and use in source and binary forms, with or without
1.10 + * modification, are permitted provided that the following conditions
1.11 + * are met:
1.12 + * 1. Redistributions of source code must retain the above copyright
1.13 + * notice, this list of conditions and the following disclaimer.
1.14 + * 2. Redistributions in binary form must reproduce the above copyright
1.15 + * notice, this list of conditions and the following disclaimer in the
1.16 + * documentation and/or other materials provided with the distribution.
1.17 + *
1.18 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1.19 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.20 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.21 + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1.22 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.23 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.24 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.25 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.26 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.27 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.28 + * SUCH DAMAGE.
1.29 + *
1.30 + * $FreeBSD: src/sys/sys/stdint.h,v 1.4 2002/08/21 16:20:01 mike Exp $
1.31 + */
1.32 +
1.33 +#ifndef _SYS_STDINT_H_
1.34 +#define _SYS_STDINT_H_
1.35 +
1.36 +#include <sys/cdefs.h>
1.37 +#include <sys/_types.h>
1.38 +
1.39 +#include <machine/_stdint.h>
1.40 +
1.41 +#ifndef _INT8_T_DECLARED
1.42 +typedef __int8_t int8_t;
1.43 +#define _INT8_T_DECLARED
1.44 +#endif
1.45 +
1.46 +#ifndef _INT16_T_DECLARED
1.47 +typedef __int16_t int16_t;
1.48 +#define _INT16_T_DECLARED
1.49 +#endif
1.50 +
1.51 +#ifndef _INT32_T_DECLARED
1.52 +typedef __int32_t int32_t;
1.53 +#define _INT32_T_DECLARED
1.54 +#endif
1.55 +
1.56 +#ifndef _INT64_T_DECLARED
1.57 +typedef __int64_t int64_t;
1.58 +#define _INT64_T_DECLARED
1.59 +#endif
1.60 +
1.61 +#ifndef _UINT8_T_DECLARED
1.62 +typedef __uint8_t uint8_t;
1.63 +#define _UINT8_T_DECLARED
1.64 +#endif
1.65 +
1.66 +#ifndef _UINT16_T_DECLARED
1.67 +typedef __uint16_t uint16_t;
1.68 +#define _UINT16_T_DECLARED
1.69 +#endif
1.70 +
1.71 +#ifndef _UINT32_T_DECLARED
1.72 +typedef __uint32_t uint32_t;
1.73 +#define _UINT32_T_DECLARED
1.74 +#endif
1.75 +
1.76 +#ifndef _UINT64_T_DECLARED
1.77 +typedef __uint64_t uint64_t;
1.78 +#define _UINT64_T_DECLARED
1.79 +#endif
1.80 +
1.81 +typedef __int_least8_t int_least8_t;
1.82 +typedef __int_least16_t int_least16_t;
1.83 +typedef __int_least32_t int_least32_t;
1.84 +typedef __int_least64_t int_least64_t;
1.85 +
1.86 +typedef __uint_least8_t uint_least8_t;
1.87 +typedef __uint_least16_t uint_least16_t;
1.88 +typedef __uint_least32_t uint_least32_t;
1.89 +typedef __uint_least64_t uint_least64_t;
1.90 +
1.91 +typedef __int_fast8_t int_fast8_t;
1.92 +typedef __int_fast16_t int_fast16_t;
1.93 +typedef __int_fast32_t int_fast32_t;
1.94 +typedef __int_fast64_t int_fast64_t;
1.95 +
1.96 +typedef __uint_fast8_t uint_fast8_t;
1.97 +typedef __uint_fast16_t uint_fast16_t;
1.98 +typedef __uint_fast32_t uint_fast32_t;
1.99 +typedef __uint_fast64_t uint_fast64_t;
1.100 +
1.101 +typedef __intmax_t intmax_t;
1.102 +typedef __uintmax_t uintmax_t;
1.103 +
1.104 +#ifndef _INTPTR_T_DECLARED
1.105 +typedef __intptr_t intptr_t;
1.106 +typedef __uintptr_t uintptr_t;
1.107 +#define _INTPTR_T_DECLARED
1.108 +#endif
1.109 +
1.110 +#endif /* !_SYS_STDINT_H_ */