[gegl] gcut: fix compiling on Windows
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gcut: fix compiling on Windows
- Date: Tue, 18 Jul 2017 15:09:54 +0000 (UTC)
commit 8629dfe5cb9bff402a686d57b827db3948d5a03c
Author: Edward E <develinthedetail gmail com>
Date: Mon Jul 17 15:30:11 2017 -0500
gcut: fix compiling on Windows
Neither Windows nor mingw-w64 have setenv(), realpath(), or SIGUSR2
gcut/gcut.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gcut/gcut.c b/gcut/gcut.c
index f64ed37..528443c 100644
--- a/gcut/gcut.c
+++ b/gcut/gcut.c
@@ -12,6 +12,11 @@
#include <gexiv2/gexiv2.h>
#endif
+#ifdef G_OS_WIN32
+#define realpath(a,b) _fullpath(b,a,_MAX_PATH)
+#define SIGUSR2 (-1) /* quick and dirty, FIXME */
+#endif
+
/* GEGL edit decision list - a digital video cutter and splicer */
/* take a string and expand {t=v i t=v t=v } to numeric or string
@@ -1247,8 +1252,8 @@ int main (int argc, char **argv)
return iconographer_main (argc-1, argv + 1);
}
- setenv ("GEGL_USE_OPENCL", "no", 1);
- setenv ("GEGL_MIPMAP_RENDERING", "1", 1);
+ g_setenv ("GEGL_USE_OPENCL", "no", 1);
+ g_setenv ("GEGL_MIPMAP_RENDERING", "1", 1);
init (argc, argv);
gcut_start_sanity ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]