X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffilemode.h;h=c51e6a3a3e95fe9cfaa80bfb4fe7438614d3de33;hb=6a0fd2e2d7d6a7e787ada21ffbe5f8ac0e3a06f1;hp=83864dfab224e838bd0bd10f9ba1994d37adf470;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/filemode.h b/lib/filemode.h index 83864dfab..c51e6a3a3 100644 --- a/lib/filemode.h +++ b/lib/filemode.h @@ -1,6 +1,6 @@ /* Make a string describing file modes. - Copyright (C) 1998-1999, 2003, 2006, 2009-2010 Free Software Foundation, + Copyright (C) 1998-1999, 2003, 2006, 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -21,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