[gobject-introspection/msvc-pragmas-stable: 1/2] giscanner/scannerlexer.l: Include io.h on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/msvc-pragmas-stable: 1/2] giscanner/scannerlexer.l: Include io.h on Windows
- Date: Thu, 2 May 2019 09:13:27 +0000 (UTC)
commit 4357f98b838d91a61fd4c99f3dc2f3bfbd130fc5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Apr 30 16:03:24 2019 +0800
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(+)
---
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]