diff options
author | YamaArashi <shadow962@live.com> | 2016-04-25 20:09:57 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-25 20:09:57 -0700 |
commit | 31cf69f88e968da5857ee39333d60bb81c021520 (patch) | |
tree | 37e685b669a30209b7db7a6f5b21faed90c5819c /gcc/obstack.h | |
parent | b03d2c9d30b7f15fddd6fb34401b4ca58a121229 (diff) |
make compilable using MinGW
Diffstat (limited to 'gcc/obstack.h')
-rwxr-xr-x | gcc/obstack.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/gcc/obstack.h b/gcc/obstack.h index 09f1422..2fb012c 100755 --- a/gcc/obstack.h +++ b/gcc/obstack.h @@ -130,27 +130,12 @@ extern "C" { available, include it and use ptrdiff_t. In traditional C, long is the best that we can do. */ -#ifdef __PTRDIFF_TYPE__ -# define PTR_INT_TYPE __PTRDIFF_TYPE__ -#else -# ifdef HAVE_STDDEF_H -# include <stddef.h> -# define PTR_INT_TYPE ptrdiff_t -# else -# define PTR_INT_TYPE long -# endif -#endif -#if defined _LIBC || defined HAVE_STRING_H -# include <string.h> -# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N)) -#else -# ifdef memcpy -# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N)) -# else -# define _obstack_memcpy(To, From, N) bcopy ((From), (To), (N)) -# endif -#endif +#include <stddef.h> +#define PTR_INT_TYPE ptrdiff_t + +#include <string.h> +#define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N)) struct _obstack_chunk /* Lives at front of each chunk. */ { |