plug-ins: fix Windows build in UCRT environment
The UCRT environment is a successor to the MINGW environment on Windows
with a more modern C runtime library.
Building under UCRT we get this error:
../../gimp/plug-ins/file-raw/file-darktable.c:420:7: error:
function '__p__environ' is initialized like a variable"
To fix this we use the relevant part of patch 6 from:
https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-gimp
(cherry picked from commit ef817dc452
)
This commit is contained in:
@ -401,7 +401,7 @@ load_image (const gchar *filename,
|
|||||||
|
|
||||||
if (debug_prints)
|
if (debug_prints)
|
||||||
{
|
{
|
||||||
gchar **environ = g_get_environ ();
|
gchar **environ_ = g_get_environ ();
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
g_printf ("[%s] trying to call\n", __FILE__);
|
g_printf ("[%s] trying to call\n", __FILE__);
|
||||||
@ -410,9 +410,9 @@ load_image (const gchar *filename,
|
|||||||
g_printf ("\n");
|
g_printf ("\n");
|
||||||
|
|
||||||
g_printf ("## Environment ##\n");
|
g_printf ("## Environment ##\n");
|
||||||
for (i = 0; environ[i]; i++)
|
for (i = 0; environ_[i]; i++)
|
||||||
g_printf ("- %s\n", environ[i]);
|
g_printf ("- %s\n", environ_[i]);
|
||||||
g_strfreev (environ) ;
|
g_strfreev (environ_) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_spawn_sync (NULL,
|
if (g_spawn_sync (NULL,
|
||||||
|
Reference in New Issue
Block a user