mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
@R patch headers for gcc-6
This commit is contained in:
14
patches/ixemul-48.2/include/errno.h.diff
Normal file
14
patches/ixemul-48.2/include/errno.h.diff
Normal file
@ -0,0 +1,14 @@
|
||||
*** .build-m68k/sources/ixemul-48.2/include/errno.h 1997-07-10 23:22:04.000000000 +0200
|
||||
--- m68k-amigaos/m68k-amigaos/sys-include/errno.h 2017-02-14 22:47:06.614119100 +0100
|
||||
***************
|
||||
*** 153,158 ****
|
||||
--- 153,161 ----
|
||||
|
||||
#define EFTYPE 79 /* Inappropriate file type or format */
|
||||
|
||||
+ #define EILSEQ 80 /* illegal_byte_sequence */
|
||||
+ #define ENOMSG 81 /* no_message */
|
||||
+
|
||||
#ifdef _KERNEL
|
||||
/* pseudo-errors returned inside kernel to modify return to process */
|
||||
#define ERESTART -1 /* restart syscall */
|
||||
110
patches/ixemul-48.2/include/stdint.h
Normal file
110
patches/ixemul-48.2/include/stdint.h
Normal file
@ -0,0 +1,110 @@
|
||||
#ifndef __STDINT_H
|
||||
#define __STDINT_H 1
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
typedef signed char int8_t;
|
||||
typedef signed short int16_t;
|
||||
typedef signed int int32_t;
|
||||
typedef signed long long int64_t;
|
||||
#define INT8_MIN SCHAR_MIN
|
||||
#define INT8_MAX SCHAR_MAX
|
||||
#define INT16_MIN SHRT_MIN
|
||||
#define INT16_MAX SHRT_MAX
|
||||
#define INT32_MIN INT_MIN
|
||||
#define INT32_MAX INT_MAX
|
||||
#define INT64_MIN LLONG_MIN
|
||||
#define INT64_MAX LLONG_MAX
|
||||
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
#define UINT8_MAX UCHAR_MAX
|
||||
#define UINT16_MAX USHRT_MAX
|
||||
#define UINT32_MAX UINT_MAX
|
||||
#define UINT64_MAX ULLONG_MAX
|
||||
|
||||
typedef signed char int_least8_t;
|
||||
typedef signed short int_least16_t;
|
||||
typedef signed int int_least32_t;
|
||||
typedef signed long long int_least64_t;
|
||||
#define INT_LEAST8_MIN SCHAR_MIN
|
||||
#define INT_LEAST8_MAX SCHAR_MAX
|
||||
#define INT_LEAST16_MIN SHRT_MIN
|
||||
#define INT_LEAST16_MAX SHRT_MAX
|
||||
#define INT_LEAST32_MIN INT_MIN
|
||||
#define INT_LEAST32_MAX INT_MAX
|
||||
#define INT_LEAST64_MIN LLONG_MIN
|
||||
#define INT_LEAST64_MAX LLONG_MAX
|
||||
|
||||
typedef unsigned char uint_least8_t;
|
||||
typedef unsigned short uint_least16_t;
|
||||
typedef unsigned int uint_least32_t;
|
||||
typedef unsigned long long uint_least64_t;
|
||||
#define UINT_LEAST8_MAX UCHAR_MAX
|
||||
#define UINTLEAST16_MAX USHRT_MAX
|
||||
#define UINTLEAST32_MAX UINT_MAX
|
||||
#define UINTLEAST64_MAX ULLONG_MAX
|
||||
|
||||
typedef int8_t int_fast8_t;
|
||||
typedef int int_fast16_t;
|
||||
typedef int int_fast32_t;
|
||||
typedef long long int_fast64_t;
|
||||
#define INT_FAST8_MIN INT_MIN
|
||||
#define INT_FAST8_MAX INT_MAX
|
||||
#define INT_FAST16_MIN INT_MIN
|
||||
#define INT_FAST16_MAX INT_MAX
|
||||
#define INT_FAST32_MIN INT_MIN
|
||||
#define INT_FAST32_MAX INT_MAX
|
||||
#define INT_FAST64_MIN LLONG_MIN
|
||||
#define INT_FAST64_MAX LLONG_MAX
|
||||
|
||||
typedef uint8_t uint_fast8_t;
|
||||
typedef unsigned int uint_fast16_t;
|
||||
typedef unsigned int uint_fast32_t;
|
||||
typedef unsigned long long uint_fast64_t;
|
||||
#define UINT_FAST8_MAX UINT_MAX
|
||||
#define UINT_FAST16_MAX UINT_MAX
|
||||
#define UINT_FAST32_MAX UINT_MAX
|
||||
#define UINT_FAST64_MAX ULLONG_MAX
|
||||
|
||||
|
||||
typedef int intptr_t;
|
||||
#define INTPTR_MIN INT_MIN
|
||||
#define INTPTR_MAX INT_MAX
|
||||
|
||||
typedef unsigned int uintptr_t;
|
||||
#define UINTPTR_MAX UINT_MAX
|
||||
|
||||
typedef long long intmax_t;
|
||||
#define INTMAX_MIN LLONG_MIN
|
||||
#define INTMAX_MAX LLONG_MAX
|
||||
|
||||
typedef unsigned long long uintmax_t;
|
||||
#define UINTMAX_MAX ULLONG_MAX
|
||||
|
||||
#define SIG_ATOMIC_MIN INT_MIN
|
||||
#define SIG_ATOMIC_MAX INT_MAX
|
||||
|
||||
#define SIZE_MAX ULONG_MAX
|
||||
|
||||
#define WCHAR_MIN CHAR_MIN
|
||||
#define WCHAR_MAX CHAR_MAX
|
||||
|
||||
#define WINT_MIN INT_MIN
|
||||
#define WINT_MAX INT_MAX
|
||||
|
||||
#define INT8_C(x) x
|
||||
#define INT16_C(x) x
|
||||
#define INT32_C(x) x
|
||||
#define INT64_C(x) x##LL
|
||||
#define INTMAX_C(x) x##LL
|
||||
|
||||
#define UINT8_C(x) x##U
|
||||
#define UINT16_C(x) x##U
|
||||
#define UINT32_C(x) x##U
|
||||
#define UINT64_C(x) x##ULL
|
||||
#define UINTMAX_C(x) x##ULL
|
||||
|
||||
#endif /* __STDINT_H */
|
||||
Reference in New Issue
Block a user