X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffilemode.h;h=c51e6a3a3e95fe9cfaa80bfb4fe7438614d3de33;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=29deecdc75a22f8f6f5b1761f6d8cda38e9864f5;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/filemode.h b/lib/filemode.h index 29deecdc7..c51e6a3a3 100644 --- a/lib/filemode.h +++ b/lib/filemode.h @@ -1,6 +1,7 @@ /* Make a string describing file modes. - Copyright (C) 1998, 1999, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2003, 2006, 2009-2014 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,13 +21,24 @@ # include # include +/* Get the declaration of strmode. */ # if HAVE_DECL_STRMODE -# include /* FreeBSD, OpenBSD */ +# include /* Mac OS X, FreeBSD, OpenBSD */ # include /* NetBSD */ -# else -void strmode (mode_t mode, char *str); # endif -void filemodestring (struct stat const *statp, char *str); +# ifdef __cplusplus +extern "C" { +# endif + +# if !HAVE_DECL_STRMODE +extern void strmode (mode_t mode, char *str); +# endif + +extern void filemodestring (struct stat const *statp, char *str); + +# ifdef __cplusplus +} +# endif #endif