summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-06 07:58:27 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-06 07:58:27 +0000
commitf11c33a202dac746b9e8f990bce94fd4eac6f8f3 (patch)
tree1748b8dd9d2d201890a31a8e3a9e2446497db5d4 /gcc/protoize.c
parent20bb4d1bc2b852826daca880469ffda8271af391 (diff)
downloadgcc-f11c33a202dac746b9e8f990bce94fd4eac6f8f3.tar.gz
Be more careful when including <time.h> and <sys/file.h> in system.h.
Consolidate O_RDONLY/O_WRONLY fallback definitions from various files into system.h. * system.h: Wrap time.h and sys/file.h in autoconf checks. Provide default definitions for O_RDONLY and O_WRONLY here. * cccp.c, cpplib.c, fix-header.c, gcc.c, protoize.c: Not here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index 70599879bbc..7d81aeae4ff 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -144,14 +144,6 @@ typedef char * pointer_type;
typedef char * const_pointer_type;
#endif
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#endif
-
-#ifndef O_WRONLY
-#define O_WRONLY 1
-#endif
-
#if defined(POSIX)
#include <signal.h>