diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-04 06:43:20 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-04 06:43:20 +0100 |
commit | c45f4aa75833c92f6902d83386d1642d0a07b75e (patch) | |
tree | 0901172dc808a1cd441ae24ecfa481a3d0f080cb /gl/tests/binary-io.h | |
parent | 9efac3da3cd8ff9cec23c362f851d34c9af4952b (diff) | |
download | gnutls-c45f4aa75833c92f6902d83386d1642d0a07b75e.tar.gz |
Updated gnulib.
Diffstat (limited to 'gl/tests/binary-io.h')
-rw-r--r-- | gl/tests/binary-io.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gl/tests/binary-io.h b/gl/tests/binary-io.h index a33e32aee2..317fe3d3c2 100644 --- a/gl/tests/binary-io.h +++ b/gl/tests/binary-io.h @@ -1,5 +1,5 @@ /* Binary mode I/O. - Copyright (C) 2001, 2003, 2005, 2008-2012 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2005, 2008-2013 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 @@ -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 */ |