summaryrefslogtreecommitdiff
path: root/gl/tests/binary-io.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-02 20:02:44 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-02 20:02:44 +0200
commit064f9fe191932be96ecfc79fa5accf1eb25142ef (patch)
tree6e8c824b0dbbde4160dd3e6213127bafe6c738dd /gl/tests/binary-io.h
parent9cd70cbfc4cfc015c10d38b2e356d286b40be416 (diff)
downloadgnutls-064f9fe191932be96ecfc79fa5accf1eb25142ef.tar.gz
Updated gnulib and added hash-pjw-bare
Diffstat (limited to 'gl/tests/binary-io.h')
-rw-r--r--gl/tests/binary-io.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gl/tests/binary-io.h b/gl/tests/binary-io.h
index a33e32aee2..0f376e3893 100644
--- a/gl/tests/binary-io.h
+++ b/gl/tests/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 */