summaryrefslogtreecommitdiff
path: root/lib/binary-io.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-11-17 16:20:52 +0100
committerLudovic Courtès <ludo@gnu.org>2012-11-17 16:20:52 +0100
commit7ae4e75af5366086e60fbc2e9454dfd9e5965102 (patch)
tree61ea2340323e17e362de7860824917d3eeb66abd /lib/binary-io.h
parent44cd55752aad2a69e1583a2cb37c3b98c5c44ad3 (diff)
downloadguile-7ae4e75af5366086e60fbc2e9454dfd9e5965102.tar.gz
Update Gnulib to v0.0-7695-g26c0590.
* gnulib-local/m4/canonicalize.m4.diff: Remove. * Makefile.am (EXTRA_DIST): Adjust accordingly.
Diffstat (limited to 'lib/binary-io.h')
-rw-r--r--lib/binary-io.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/binary-io.h b/lib/binary-io.h
index 77cbd4ec9..30315e10c 100644
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -25,6 +25,11 @@
so we include it here first. */
#include <stdio.h>
+_GL_INLINE_HEADER_BEGIN
+#ifndef BINARY_IO_INLINE
+# define BINARY_IO_INLINE _GL_INLINE
+#endif
+
/* set_binary_mode (fd, mode)
sets the binary/text I/O mode of file descriptor fd to the given mode
(must be O_BINARY or O_TEXT) and returns the previous mode. */
@@ -39,9 +44,9 @@
# endif
#else
/* On reasonable systems, binary I/O is the only choice. */
- /* Use an inline function rather than a macro, to avoid gcc warnings
+ /* Use a function rather than a macro, to avoid gcc warnings
"warning: statement with no effect". */
-static inline int
+BINARY_IO_INLINE int
set_binary_mode (int fd, int mode)
{
(void) fd;
@@ -62,4 +67,6 @@ set_binary_mode (int fd, int mode)
# define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY))
#endif
+_GL_INLINE_HEADER_END
+
#endif /* _BINARY_H */