OpenLibm/include/types-compat.h
Thomas Leonard 4cb9231f1a Removed some uses of sys/types.h
It's useful to be able to compile openlibm in environments where this
doesn't exist (e.g. OS kernels).
2014-12-01 11:10:41 +00:00

24 lines
465 B
C

#ifndef _TYPES_COMPAT_H_
#define _TYPES_COMPAT_H_
#include <stdint.h>
#include <limits.h>
#include <stdint.h>
#ifdef __linux__
/* Not sure what to do about __pure2 on linux */
#define __pure2
#endif
#ifdef _WIN32
/* Not sure what to do about __pure2 on windows */
#define __pure2
#endif
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
#endif