Mercurial > hg > octave-lyh > gnulib-hg
changeset 6901:1028967dfcb4
* stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
unused static function.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Fri, 30 Jun 2006 04:20:00 +0000 |
parents | 40f132eb7892 |
children | 44315634f193 |
files | lib/ChangeLog lib/stat_.h |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-06-29 Eric Blake <ebb9@byu.net> + + * stat_.h (rpl_mkdir): Declare inline, to avoid warnings about + unused static function. + 2006-06-29 Eric Blake <ebb9@byu.net> * stat_.h: New file.
--- a/lib/stat_.h +++ b/lib/stat_.h @@ -35,7 +35,13 @@ alias mkdir), only in the nonstandard io.h. */ #if ! HAVE_DECL_MKDIR && HAVE_IO_H # include <io.h> -static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } + +static inline int +rpl_mkdir (char const *name, mode_t mode) +{ + return _mkdir (name); +} + # define mkdir rpl_mkdir #endif