projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nonblocking: provide O_NONBLOCK for mingw
[gnulib.git]
/
lib
/
filemode.h
diff --git
a/lib/filemode.h
b/lib/filemode.h
index
0897fee
..
1a50302
100644
(file)
--- a/
lib/filemode.h
+++ b/
lib/filemode.h
@@
-1,6
+1,7
@@
/* Make a string describing file modes.
/* 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
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 <sys/types.h>
# include <sys/stat.h>
# include <sys/types.h>
# include <sys/stat.h>
+/* Get the declaration of strmode. */
# if HAVE_DECL_STRMODE
# if HAVE_DECL_STRMODE
-# include <string.h> /* FreeBSD, OpenBSD */
+# include <string.h> /*
MacOS X,
FreeBSD, OpenBSD */
# include <unistd.h> /* NetBSD */
# include <unistd.h> /* NetBSD */
-# else
-void strmode (mode_t mode, char *str);
# endif
# 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
#endif