diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-11-22 15:20:53 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-11-22 15:20:53 +0800 |
commit | cfbe68e46877cb0ff3f3da775b709c48513565c8 (patch) | |
tree | cbb83101acb6a3d8e4ee89699bc74cd4ce6519e2 /catalog.c | |
parent | 0e193f0d61f6d6f29c31ac5f801975e810df7a04 (diff) | |
download | libxml2-cfbe68e46877cb0ff3f3da775b709c48513565c8.tar.gz |
sources: Silence C4013 warnings on Visual Studio
The read(), close(), open(), lseek() functions are found in io.h on Visual
Studio, which does not ship unistd.h, so include io.h on Windows if unistd.h
is not found.
C4013 (aka implicit declaration of ...) warnings can often ring alarm bells.
Diffstat (limited to 'catalog.c')
-rw-r--r-- | catalog.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,6 +23,8 @@ #endif #ifdef HAVE_UNISTD_H #include <unistd.h> +#elif defined (_WIN32) +#include <io.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> |