mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
Removed WIN32 use of recv() in fluid_istream_gets() since it is also used for stdin. Probably wont work for WIN32 TCP sockets though.
This commit is contained in:
parent
70aff30d4b
commit
95e985b4c9
1 changed files with 0 additions and 5 deletions
|
@ -979,13 +979,8 @@ fluid_istream_gets (fluid_istream_t in, char* buf, int len)
|
|||
|
||||
while (--len > 0)
|
||||
{
|
||||
#ifndef WIN32
|
||||
n = read(in, &c, 1);
|
||||
if (n == -1) return -1;
|
||||
#else
|
||||
n = recv (in, &c, 1, 0);
|
||||
if (n == SOCKET_ERROR) return -1;
|
||||
#endif
|
||||
|
||||
if (n == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue