1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

binary-io: Define set_binary_mode function.

* lib/binary-io.h (set_binary_mode): New function.
(SET_BINARY): Define in terms of set_binary_mode.
* modules/binary-io (configure.ac): Require AC_C_INLINE.
* tests/test-binary-io.c (main): Accept an argument, and test either
set_binary_mode or SET_BINARY depending on the argument.
* tests/test-binary-io.sh: Invoke test-binary-io twice, with an
argument. Clean up also t-bin-out0.tmp.
This commit is contained in:
Bruno Haible
2012-05-13 22:54:49 +02:00
parent 81e2fe4047
commit 290f951644
5 changed files with 65 additions and 23 deletions

View File

@@ -8,6 +8,7 @@ Depends-on:
fcntl-h
configure.ac:
AC_REQUIRE([AC_C_INLINE])
Makefile.am:
lib_SOURCES += binary-io.h