/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef _MACHINE_TYPES_H_
#define _MACHINE_TYPES_H_

#ifdef KERNEL
#define _BSD_CLOCK_T_ unsigned int
#define _BSD_TIME_T_ unsigned int
#else
#include <time.h>
#endif
#ifndef __size_t
#  define __size_t 1
#  define _BSD_SIZE_T_ unsigned int
#endif
#define _BSD_SSIZE_T_ int
typedef unsigned int vm_offset_t;

#if __STDC_VERSION__ >= 199901
#include <stdint.h>
typedef uint32_t u_int32_t;
typedef uint16_t u_int16_t;
typedef uint8_t  u_int8_t;
#else
typedef unsigned int u_int32_t;
typedef signed int int32_t;
typedef unsigned short u_int16_t;
typedef signed short int16_t;
typedef unsigned char u_int8_t;
typedef signed char int8_t;
#endif

#endif
