mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Prevent GCC from fixing headers that are OK.
This commit is contained in:
parent
4b252fc55e
commit
500f8651bb
3 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
#ifndef _PTRDIFF_T_DECL
|
||||
#define _PTRDIFF_T_DECL
|
||||
#if !defined(_GCC_PTRDIFF_T)
|
||||
#define _GCC_PTRDIFF_T
|
||||
typedef __ptrdiff_t ptrdiff_t;
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
#ifndef _SIZE_T_DECLARED /* Compabillity with gcc */
|
||||
#define _SIZE_T_DECL
|
||||
#define _SIZE_T_DECLARED
|
||||
#if !defined(_GCC_SIZE_T)
|
||||
#define _GCC_SIZE_T
|
||||
typedef __size_t size_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef _WCHAR_T_DECL
|
||||
#define _WCHAR_T_DECL
|
||||
#if !defined(__cplusplus)
|
||||
#if !defined(_GCC_WCHAR_T)
|
||||
#define _GCC_WCHAR_T
|
||||
typedef __wchar_t wchar_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue