cccp.c (S_ISREG, S_ISDIR): Delete defines.
* cccp.c (S_ISREG, S_ISDIR): Delete defines. * cpplib.c, gcc.c: Likewise. * system.h (S_ISREG, S_ISDIR): Define if not already defined. From-SVN: r23785
This commit is contained in:
parent
83cbe7e48d
commit
9855b854a4
@ -1,3 +1,9 @@
|
||||
Mon Nov 23 10:16:38 1998 "Melissa O'Neill" <oneill@cs.sfu.ca>
|
||||
|
||||
* cccp.c (S_ISREG, S_ISDIR): Delete defines.
|
||||
* cpplib.c, gcc.c: Likewise.
|
||||
* system.h (S_ISREG, S_ISDIR): Define if not already defined.
|
||||
|
||||
Mon Nov 23 09:53:44 1998 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* local-alloc.c (local_alloc): Use malloc not alloca for
|
||||
|
@ -113,14 +113,6 @@ static int hack_vms_include_specification ();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
#ifndef INO_T_EQ
|
||||
#define INO_T_EQ(a, b) ((a) == (b))
|
||||
#endif
|
||||
|
@ -72,14 +72,6 @@ extern char *update_path PARAMS ((char *, char *));
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
/* By default, colon separates directories in a path. */
|
||||
#ifndef PATH_SEPARATOR
|
||||
#define PATH_SEPARATOR ':'
|
||||
|
10
gcc/gcc.c
10
gcc/gcc.c
@ -55,16 +55,6 @@ extern void set_std_prefix PROTO((char *, int));
|
||||
#define exit __posix_exit
|
||||
#endif
|
||||
|
||||
/* Test if something is a normal file. */
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
/* Test if something is a directory. */
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
/* By default there is no special suffix for executables. */
|
||||
#ifdef EXECUTABLE_SUFFIX
|
||||
#define HAVE_EXECUTABLE_SUFFIX
|
||||
|
11
gcc/system.h
11
gcc/system.h
@ -356,4 +356,15 @@ extern void abort ();
|
||||
#define _(String) String
|
||||
#define N_(String) String
|
||||
|
||||
|
||||
/* Test if something is a normal file. */
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif
|
||||
|
||||
/* Test if something is a directory. */
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
#endif /* __GCC_SYSTEM_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user