mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Fix link error on native Windows with MSVC/clang.
* tests/test2.c (SET_BINARY): On native Windows, use _setmode, not setmode.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2020-08-29 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Fix link error on native Windows with MSVC/clang.
|
||||
* tests/test2.c (SET_BINARY): On native Windows, use _setmode, not
|
||||
setmode.
|
||||
|
||||
2020-08-29 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Update after gnulib changed.
|
||||
|
||||
@@ -16,7 +16,11 @@
|
||||
#endif
|
||||
#if O_BINARY
|
||||
# include <io.h>
|
||||
# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
|
||||
# define SET_BINARY(f) setmode (f, O_BINARY)
|
||||
# else
|
||||
# define SET_BINARY(f) _setmode (f, O_BINARY)
|
||||
# endif
|
||||
#else
|
||||
# define SET_BINARY(f) (void)0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user