[glib] gio/glocalfile.c: Windows: Define ECANCELED if not already defined
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio/glocalfile.c: Windows: Define ECANCELED if not already defined
- Date: Mon, 18 Jul 2016 06:45:47 +0000 (UTC)
commit 97972471ca232a11fae4ed025fbbce3b821f1bec
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 18 14:41:17 2016 +0800
gio/glocalfile.c: Windows: Define ECANCELED if not already defined
Older Visual Studio may not have it defined, so define it like what is
defined for Visual Studio 2010 and later.
gio/glocalfile.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index f6114f9..4075d4b 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -84,6 +84,10 @@
#ifndef S_ISLNK
#define S_ISLNK(m) (0)
#endif
+
+#ifndef ECANCELED
+#define ECANCELED 105
+#endif
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]