summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-04-30 16:03:24 +0800
committerChristoph Reiter <reiter.christoph@gmail.com>2019-05-03 20:52:43 +0000
commitd16021274d8e7f82a25ec0cbd97f2d193f37e2c8 (patch)
tree175b1c6515544bb50c7a90a5ee9c2a42426ec12b
parentd52338f0a6203532fadb955ab25cd3d28aebac1b (diff)
downloadgobject-introspection-d16021274d8e7f82a25ec0cbd97f2d193f37e2c8.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.
-rw-r--r--giscanner/scannerlexer.l2
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>