diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-19 08:10:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-19 08:10:47 +0000 |
commit | 60e4df71918ae5e82a4a8fd1f70538dfa98ba872 (patch) | |
tree | e6679af21cf588d57adbbb9949507263f723d76a /lib | |
parent | c8dd553971656ada833d1d9df76da553c685458c (diff) | |
download | coreutils-60e4df71918ae5e82a4a8fd1f70538dfa98ba872.tar.xz |
Don't define __const.
(fnmatch): Use const, not __const in prototype.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fnmatch_.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/fnmatch_.h b/lib/fnmatch_.h index 31347e2c7..5d83ac984 100644 --- a/lib/fnmatch_.h +++ b/lib/fnmatch_.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002 +/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -35,10 +35,6 @@ extern "C" { non-ANSI C where `const' is problematical. */ # endif /* C++ or ANSI C. */ -# ifndef __const -# define __const const -# endif - /* We #undef these before defining them because some losing systems (HP-UX A.08.07 for example) define these in <unistd.h>. */ # undef FNM_PATHNAME @@ -70,7 +66,7 @@ extern "C" { /* Match NAME against the filename pattern PATTERN, returning zero if it matches, FNM_NOMATCH if not. */ -extern int fnmatch __P ((__const char *__pattern, __const char *__name, +extern int fnmatch __P ((const char *__pattern, const char *__name, int __flags)); # ifdef __cplusplus |