[babl] babl-cache: attempt to make things barely compile on win32
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl-cache: attempt to make things barely compile on win32
- Date: Tue, 15 Nov 2016 22:51:58 +0000 (UTC)
commit 4fcf3fe10e8addfc7f39b7037a1d468abdf29a68
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Nov 15 23:51:44 2016 +0100
babl-cache: attempt to make things barely compile on win32
babl/babl-cache.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/babl/babl-cache.c b/babl/babl-cache.c
index 35ae260..7f06997 100644
--- a/babl/babl-cache.c
+++ b/babl/babl-cache.c
@@ -24,6 +24,10 @@
static const char *fish_cache_path (void)
{
+#ifdef _WIN32 // XXX: fixme - make this work - and be a reasonable location
+ // on windows
+ return "C:\\babl.txt";
+#else
// FIXME: need a location for this temporary file on win32
struct stat stat_buf;
static char resolved[4096];
@@ -51,6 +55,7 @@ static const char *fish_cache_path (void)
free (ret);
return resolved;
+#endif
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]