Prevent GCC from fixing headers that are OK.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-05-27 23:46:59 +02:00
parent 4b252fc55e
commit 500f8651bb
3 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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