cccp.c (S_ISREG, S_ISDIR): Delete defines.
authorMelissa O'Neill <oneill@cs.sfu.ca>
Mon, 23 Nov 1998 09:20:35 +0000 (02:20 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 23 Nov 1998 09:20:35 +0000 (02:20 -0700)
        * 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

gcc/ChangeLog
gcc/cccp.c
gcc/cpplib.c
gcc/gcc.c
gcc/system.h

index c5635ed67240a6cfd668b3b3528c441907d4acb6..59e68b25125877c11db58f253eb798e6ad9b2206 100644 (file)
@@ -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
index 0d55cec2d5c620e9fa342db88b0fda2c29fdfda5..d6b2aa0b670f97dbd1343be17b377cee52828025 100644 (file)
@@ -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
index f8a38e55bb13f5e0576daa50d06acab2a12ba293..269ac6682efd7315d7df9ce6280f755cc94bc544 100644 (file)
@@ -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 ':'
index 77b90602a91840ccad36351cfc92118634f1abe9..2704d965a7179bbc467cb2fe38c5624cb24ff2ce 100644 (file)
--- a/gcc/gcc.c
+++ b/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
index f876c5443a045172bd1e21128f4ac98ddf8e4d97..bb5d6801d455788ca08dd43e1552178d7f0f5669 100644 (file)
@@ -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__ */