1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-09 04:58:16 +03:00

Add windows includes to xmlIO.c

xmlIO.c calls read() and getcwd() which need io.h and direct.h
respectively when compiling on windows. Otherwise, a compiler error may
be raised saying that read() and getcwd() were used implicitly.

This was regressed recently, I'm guessing it was due to the changes to
win32config.h in commit 84085a26
This commit is contained in:
Joey Arhar 2022-03-29 16:07:51 -07:00 committed by Nick Wellnhofer
parent 0137d9879b
commit b7b29df9c2

View File

@ -37,6 +37,8 @@
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <io.h>
#include <direct.h>
#endif
#ifndef S_ISDIR