From d2faab30b91ae54fb82bd4b964b9ef7df9e8dd60 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 30 Apr 2019 16:03:24 +0800 Subject: 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. --- giscanner/scannerlexer.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'giscanner') 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 #ifndef _WIN32 #include +#else +#include #endif #include -- cgit v1.2.1