From: Jim Wilson Date: Wed, 12 Nov 1997 00:26:40 +0000 (+0000) Subject: cygwin32 patch for Noer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f3189a48b529402c7d9d64a60bc0a1c0431c48d;p=gcc.git cygwin32 patch for Noer cygwin32 patch for Noer * i386/cygwin32.h (CPP_PREDEFINES): Delete -DPOSIX. * i386/xm-cygwin32.h (POSIX): Define. From-SVN: r16432 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11bcebaeedb..163ae81d8c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 11 16:25:49 1997 Jim Wilson + + * i386/cygwin32.h (CPP_PREDEFINES): Delete -DPOSIX. + * i386/xm-cygwin32.h (POSIX): Define. + Mon Nov 10 20:53:11 1997 Gavin Koch * config/mips/mips.h (MASK_DEBUG_H): Set to zero, so this bit diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index 88b367bc1cb..40870930286 100644 --- a/gcc/config/i386/cygwin32.h +++ b/gcc/config/i386/cygwin32.h @@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */ #endif #define CPP_PREDEFINES "-Di386 -D_WIN32 \ - -DPOSIX -D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1\ + -D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1\ -D__stdcall=__attribute__((__stdcall__)) \ -D__cdecl=__attribute__((__cdecl__)) \ -Asystem(winnt) -Acpu(i386) -Amachine(i386)" @@ -199,3 +199,6 @@ do { \ TREE_CODE (DECL) == FUNCTION_DECL \ ? "discard" : "same_size"); \ } while (0) + +#undef ASM_COMMENT_START +#define ASM_COMMENT_START " #" diff --git a/gcc/config/i386/xm-cygwin32.h b/gcc/config/i386/xm-cygwin32.h index c45e75cd773..a161f66dcc4 100644 --- a/gcc/config/i386/xm-cygwin32.h +++ b/gcc/config/i386/xm-cygwin32.h @@ -26,3 +26,6 @@ Boston, MA 02111-1307, USA. */ /* Even though we support "/", allow "\" since everybody tests both. */ #define DIR_SEPARATOR '\\' + +/* This is needed so that protoize will compile. */ +#define POSIX