From 4682deeb62247d34de87f8e777f99e2d337fd377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 20 Oct 2024 15:21:43 +0200 Subject: New upstream version 1.3 --- tests/binary-io.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/binary-io.h') diff --git a/tests/binary-io.h b/tests/binary-io.h index 0cc5c117..1da018fa 100644 --- a/tests/binary-io.h +++ b/tests/binary-io.h @@ -55,6 +55,11 @@ __gl_setmode (_GL_UNUSED int fd, _GL_UNUSED int mode) } #endif +#ifdef __cplusplus +extern "C" { +#endif + + /* Set FD's mode to MODE, which should be either O_TEXT or O_BINARY. Return the old mode if successful, -1 (setting errno) on failure. Ordinarily this function would be called 'setmode', since that is @@ -74,6 +79,11 @@ set_binary_mode (int fd, int mode) /* This macro is obsolescent. */ #define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY)) + +#ifdef __cplusplus +} +#endif + _GL_INLINE_HEADER_END #endif /* _BINARY_H */ -- cgit v1.2.3