mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
resources: Hide external data symbol
Apply --internal to the symbol for the section as well. Only do this with --external-data, since otherwise gcc will complain about ignoring the attribute. This fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4598
This commit is contained in:
parent
848d7718b6
commit
6039c1f4e8
@ -1185,9 +1185,9 @@ main (int argc, char **argv)
|
|||||||
if (external_data)
|
if (external_data)
|
||||||
{
|
{
|
||||||
g_fprintf (file,
|
g_fprintf (file,
|
||||||
"extern const SECTION union { const guint8 data[%"G_GSIZE_FORMAT"]; const double alignment; void * const ptr;} %s_resource_data;"
|
"extern const %s SECTION union { const guint8 data[%" G_GSIZE_FORMAT "]; const double alignment; void * const ptr;} %s_resource_data;"
|
||||||
"\n",
|
"\n",
|
||||||
data_size, c_name);
|
export, data_size, c_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user