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>
|
2020-08-29 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Update after gnulib changed.
|
Update after gnulib changed.
|
||||||
|
|||||||
@@ -16,8 +16,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#if O_BINARY
|
#if O_BINARY
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__
|
||||||
# define SET_BINARY(f) setmode (f, O_BINARY)
|
# define SET_BINARY(f) setmode (f, O_BINARY)
|
||||||
# else
|
# else
|
||||||
|
# define SET_BINARY(f) _setmode (f, O_BINARY)
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
# define SET_BINARY(f) (void)0
|
# define SET_BINARY(f) (void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user