[gegl] load, ff-load: use _fullpath instead of realpath on win32
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] load, ff-load: use _fullpath instead of realpath on win32
- Date: Mon, 8 Feb 2016 08:29:01 +0000 (UTC)
commit 2a8c9ddcf779f83f9011ffa87eb5a609c6292052
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Feb 8 09:26:54 2016 +0100
load, ff-load: use _fullpath instead of realpath on win32
Fixes win32 cross compilation issue as reported in bug #761697
operations/common/load.c | 5 +++++
operations/external/ff-load.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/load.c b/operations/common/load.c
index 9a8935e..67e8069 100644
--- a/operations/common/load.c
+++ b/operations/common/load.c
@@ -19,6 +19,11 @@
#include "config.h"
#include <glib/gi18n-lib.h>
#include <gegl-gio-private.h>
+#include <stdlib.h>
+
+#ifdef G_OS_WIN32
+#define realpath(a,b) _fullpath(b,a,_MAX_PATH)
+#endif
#ifdef GEGL_PROPERTIES
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index f85b82f..a459d4f 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -18,6 +18,11 @@
#include "config.h"
#include <glib/gi18n-lib.h>
+#include <stdlib.h>
+
+#ifdef G_OS_WIN32
+#define realpath(a,b) _fullpath(b,a,_MAX_PATH)
+#endif
#ifdef GEGL_PROPERTIES
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]