summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>1994-10-15 20:09:12 +0000
committerPaul Eggert <eggert@cs.ucla.edu>1994-10-15 20:09:12 +0000
commit4ce826fb34d8011e8c021eeb14a283ccc920cec5 (patch)
treee4e2d03d33070763934b423581698bf453a4b4b8 /src/system.h
parent2f95916004c9c67345c8e9298d0a8a8394ff58aa (diff)
downloaddiffutils-4ce826fb34d8011e8c021eeb14a283ccc920cec5.tar.gz
(_tolower): Define if not already defined.
(malloc, realloc): Remove unused declarations.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/system.h b/src/system.h
index d60af60..bce96bf 100644
--- a/src/system.h
+++ b/src/system.h
@@ -51,16 +51,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
#endif
-#if !defined(S_ISBLK) && defined(S_IFBLK)
+#if !defined (S_ISBLK) && defined (S_IFBLK)
#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
#endif
-#if !defined(S_ISCHR) && defined(S_IFCHR)
+#if !defined (S_ISCHR) && defined (S_IFCHR)
#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
#endif
-#if !defined(S_ISFIFO) && defined(S_IFFIFO)
+#if !defined (S_ISFIFO) && defined (S_IFFIFO)
#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFFIFO)
#endif
-#if !defined(S_ISSOCK) && defined(S_IFSOCK)
+#if !defined (S_ISSOCK) && defined (S_IFSOCK)
#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
#endif
@@ -127,7 +127,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#if HAVE_DIRENT_H
# include <dirent.h>
-# define NAMLEN(dirent) strlen((dirent)->d_name)
+# define NAMLEN(dirent) strlen ((dirent)->d_name)
#else
# define dirent direct
# define NAMLEN(dirent) ((dirent)->d_namlen)
@@ -148,9 +148,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#if HAVE_STDLIB_H
#include <stdlib.h>
-#else
-VOID *malloc ();
-VOID *realloc ();
#endif
#ifndef getenv
char *getenv ();
@@ -206,6 +203,10 @@ void *memchr ();
#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
#endif
+#ifndef _tolower
+#define _tolower(c) tolower (c)
+#endif
+
#include <errno.h>
#if !STDC_HEADERS
extern int errno;