diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-04-30 16:03:24 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-04-30 16:03:24 +0800 |
commit | d2faab30b91ae54fb82bd4b964b9ef7df9e8dd60 (patch) | |
tree | 96b3035550060833d445b560a8afe295da4fde75 /giscanner | |
parent | c2d8dab8250d3cc6969fcabfd9f606ffe9c63823 (diff) | |
download | gobject-introspection-d2faab30b91ae54fb82bd4b964b9ef7df9e8dd60.tar.gz |
giscanner/scannerlexer.l: Include io.h on Windows
This is to compensate the for the lack of unistd.h on Visual Studio
builds, and to avoid the compiler warning about the implicit declaration
of access() as a result. This is to also prepare for the next commit
when we force-include msvc_recommended_pragmas.h from GLib on Visual
Studio builds.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/scannerlexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index bcce4397..cfec4d58 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -34,6 +34,8 @@ #include <string.h> #ifndef _WIN32 #include <limits.h> +#else +#include <io.h> #endif #include <glib.h> |