~gmpc-trunk/libmpdclient/trunk

« back to all changes in this revision

Viewing changes to src/async.c

  • Committer: Max Kellermann
  • Date: 2017-08-15 19:18:02 UTC
  • Revision ID: git-v1:41b2489fd5722f76d8b96037a5b6c1096e544a5b
async: no ssize_t typedef with mingw32

mingw32 defines ssize_t, and our typedef conflicts with that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
#ifdef _WIN32
45
45
#  include <basetsd.h> /* for SSIZE_T */
 
46
#ifndef __MINGW32__
46
47
typedef SSIZE_T ssize_t;
 
48
#endif
47
49
#else
48
50
#  include <sys/socket.h>
49
51
#endif