X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffilemode.h;h=1a50302704cf5f717936dec4c247235ab28dd91a;hb=70a72e0f50411ccc776379a761725d8c8bec58a3;hp=0897fee17813088c447b7ea4d63ec5df3ab7a922;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/lib/filemode.h b/lib/filemode.h index 0897fee17..1a5030270 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, 2009 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2003, 2006, 2009-2011 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 /* MacOS 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