MSVC: Use <io.h> as an alternative for <unistd.h>
authorAdrian Perez de Castro <aperez@igalia.com>
Mon, 5 Aug 2019 10:52:18 +0000 (13:52 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 28 Dec 2019 14:12:15 +0000 (16:12 +0200)
commit5354dee2f7ee99792a38a3a13f85da90c654f7ee
treed815208aba67ffc6bf4d9e0fe64c6e13396a639a
parentf09ae987bffc2ede00341bc6f0e903ae6810def5
MSVC: Use <io.h> as an alternative for <unistd.h>

Only the input/output functions from <unistd.h> options are used, so
using <io.h> when building with MSVC should be enough. The inclusion
of the header in context-priv.c does not seem to be needed (tested
on GNU/Linux) and so it is removed.

Signed-off-by: Ran Benita <ran@unusedvar.com>
src/context-priv.c
src/context.c
test/common.c
test/context.c