Joren l'Ami's fixes to includes for gcc

This commit is contained in:
Ben Gras 2005-09-01 13:07:08 +00:00
parent 0be5f3cf7b
commit 3f6cd154a2
3 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,7 @@
#define _MACHINE_MACINTOSH 62 /* Apple Macintosh (68000) */
/* Word size in bytes (a constant equal to sizeof(int)). */
#if __ACK__
#if __ACK__ || __GNUC__
#define _WORD_SIZE _EM_WSIZE
#define _PTR_SIZE _EM_WSIZE
#endif

View file

@ -84,7 +84,7 @@
#define _SETJMP_SAVES_REGS 1
#endif
#ifdef __GNUC__
#define _SETJMP_SYMBOL 0
#define _SETJMP_SYMBOL 1
#define _SETJMP_SAVES_REGS 1
#endif
@ -119,7 +119,11 @@ _PROTOTYPE(void _longjmp, (jmp_buf _env, int _val) );
#ifdef _POSIX_SOURCE
typedef jmp_buf sigjmp_buf;
#ifdef __GNUC__
#define siglongjmp longjmp
#else
_PROTOTYPE( void siglongjmp, (sigjmp_buf _env, int _val) );
#endif
#define sigsetjmp(env, savemask) __setjmp((env), (savemask))
#endif /* _POSIX_SOURCE */

View file

@ -36,6 +36,7 @@ typedef struct __iobuf {
#define _IOREADING 0x080
#define _IOWRITING 0x100
#define _IOAPPEND 0x200
#define _IOFIFO 0x400
/* The following definitions are also in <unistd.h>. They should not
* conflict.