Commit 9855b854 by Melissa O'Neill Committed by Jeff Law

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
parent 83cbe7e4
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> Mon Nov 23 09:53:44 1998 Richard Henderson <rth@cygnus.com>
* local-alloc.c (local_alloc): Use malloc not alloca for * local-alloc.c (local_alloc): Use malloc not alloca for
......
...@@ -113,14 +113,6 @@ static int hack_vms_include_specification (); ...@@ -113,14 +113,6 @@ static int hack_vms_include_specification ();
# endif # endif
#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 #ifndef INO_T_EQ
#define INO_T_EQ(a, b) ((a) == (b)) #define INO_T_EQ(a, b) ((a) == (b))
#endif #endif
......
...@@ -72,14 +72,6 @@ extern char *update_path PARAMS ((char *, char *)); ...@@ -72,14 +72,6 @@ extern char *update_path PARAMS ((char *, char *));
# endif # endif
#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. */ /* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR #ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':' #define PATH_SEPARATOR ':'
......
...@@ -55,16 +55,6 @@ extern void set_std_prefix PROTO((char *, int)); ...@@ -55,16 +55,6 @@ extern void set_std_prefix PROTO((char *, int));
#define exit __posix_exit #define exit __posix_exit
#endif #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. */ /* By default there is no special suffix for executables. */
#ifdef EXECUTABLE_SUFFIX #ifdef EXECUTABLE_SUFFIX
#define HAVE_EXECUTABLE_SUFFIX #define HAVE_EXECUTABLE_SUFFIX
......
...@@ -356,4 +356,15 @@ extern void abort (); ...@@ -356,4 +356,15 @@ extern void abort ();
#define _(String) String #define _(String) String
#define N_(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__ */ #endif /* __GCC_SYSTEM_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment