view patches/inkscape-mingw-DATADIR.h.patch @ 6512:ccc20ae889ca default tip guix

mingw::guile-2.0.7 builds.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 24 Mar 2016 08:03:39 +0100
parents 137e2c1120bf
children
line wrap: on
line source

--- inkscape-trunk-20605/src/prefix.h~	2009-01-30 13:37:53.000000000 +0100
+++ inkscape-trunk-20605/src/prefix.h	2009-02-06 14:06:18.000000000 +0100
@@ -17,6 +17,12 @@
 #ifndef _PREFIX_H_
 #define _PREFIX_H_
 
+#ifdef __MINGW32__
+#define DATADIR __mingw_DATADIR__
+#include <windows.h>
+#undef DATADIR
+#endif / * __MINGW32__ */
+
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
--- inkscape-trunk-20605/src/main.cpp~	2009-01-30 13:37:53.000000000 +0100
+++ inkscape-trunk-20605/src/main.cpp	2009-02-06 16:06:36.000000000 +0100
@@ -519,6 +519,9 @@ static int _win32_set_inkscape_env(const
  * Add INKSCAPE_EXTENSIONDIR to PYTHONPATH so that extensions in users home
  * can find inkex.py et al. (Bug #197475)
  */
+#ifdef __MINGW32__
+#define DATADIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share")))
+#endif /* __MINGW32__ */
 static int set_extensions_env()
 {
     char *oldenv = getenv("PYTHONPATH");
--- inkscape-trunk-20605/src/extension/init.cpp~	2009-01-30 13:37:02.000000000 +0100
+++ inkscape-trunk-20605/src/extension/init.cpp	2009-02-06 17:28:25.000000000 +0100
@@ -138,6 +138,10 @@ update_pref(Glib::ustring const &pref_pa
     }
 }
 
+#ifdef __MINGW32__
+#define DATADIR (br_thread_local_store (br_prepend_prefix ((void *) "", "/share")))
+#endif /* __MINGW32__ */
+
 /**
  * Invokes the init routines for internal modules.
  *