Print this page
remove support for non-ANSI compilation

*** 18,36 **** * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright (c) 1994 by Sun Microsystems, Inc. * Copyright 1985, 1994 by Mortice Kern Systems Inc. All rights reserved. */ #ifndef _FNMATCH_H #define _FNMATCH_H - #pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif #define FNM_PATHNAME 0x01 /* Slash in str only matches slash in pattern */ --- 18,35 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> * Copyright (c) 1994 by Sun Microsystems, Inc. * Copyright 1985, 1994 by Mortice Kern Systems Inc. All rights reserved. */ #ifndef _FNMATCH_H #define _FNMATCH_H #ifdef __cplusplus extern "C" { #endif #define FNM_PATHNAME 0x01 /* Slash in str only matches slash in pattern */
*** 41,55 **** #define FNM_NOMATCH 1 /* string doesnt match the specified pattern */ #define FNM_ERROR 2 /* error occured */ #define FNM_NOSYS 3 /* Function (XPG4) not supported */ - #if defined(__STDC__) extern int fnmatch(const char *, const char *, int); - #else - extern int fnmatch(); - #endif #ifdef __cplusplus } #endif --- 40,50 ----