summaryrefslogtreecommitdiffstats
path: root/src/prefix.h
diff options
context:
space:
mode:
authorEduard Braun <Eduard.Braun2@gmx.de>2017-06-15 19:45:48 +0000
committerEduard Braun <Eduard.Braun2@gmx.de>2017-06-15 19:45:48 +0000
commit2cf0d896e314d46767ec2c0f7e2734473f523490 (patch)
treee0b2c020d99d1ac292db1b3a01de5c5783c57a47 /src/prefix.h
parentcleanup (diff)
downloadinkscape-2cf0d896e314d46767ec2c0f7e2734473f523490.tar.gz
inkscape-2cf0d896e314d46767ec2c0f7e2734473f523490.zip
Refactor 1a66c0aae0da7c3b860d06e72f5ff87f444bc462 and allow to use a different data directory by setting the environment variable INKSCAPE_DATADIR at runtime
Diffstat (limited to 'src/prefix.h')
-rw-r--r--src/prefix.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/prefix.h b/src/prefix.h
index da1295986..d28e896d0 100644
--- a/src/prefix.h
+++ b/src/prefix.h
@@ -119,8 +119,10 @@ char *br_extract_prefix(const char *path);
#endif /* __cplusplus */
#ifdef __WIN32__
-char *win32_append_module_path(const char *relative_path);
-#define WIN32_DATADIR(suffix) (win32_append_module_path(suffix))
+char *win32_append_datadir(const char *relative_path);
+#undef INKSCAPE_DATADIR
+#define INKSCAPE_DATADIR win32_append_datadir(NULL)
+#define WIN32_DATADIR(suffix) (win32_append_datadir(suffix))
#endif
#endif /* _PREFIX_H_ */