2020-10-31 20:12:25 +00:00
|
|
|
diff --git a/glib/poppler-enums.c.template b/glib/poppler-enums.c.template
|
|
|
|
index 26a51b4..27be2b9 100644
|
|
|
|
--- a/glib/poppler-enums.c.template
|
|
|
|
+++ b/glib/poppler-enums.c.template
|
|
|
|
@@ -15,7 +15,7 @@
|
|
|
|
GType
|
|
|
|
@enum_name@_get_type (void)
|
|
|
|
{
|
|
|
|
- static volatile gsize g_define_type_id__volatile = 0;
|
|
|
|
+ static gsize g_define_type_id__volatile = 0;
|
|
|
|
|
|
|
|
if (g_once_init_enter (&g_define_type_id__volatile)) {
|
|
|
|
static const G@Type@Value values[] = {
|
2021-01-19 20:06:56 +00:00
|
|
|
|
2020-10-31 20:12:25 +00:00
|
|
|
diff --git a/glib/poppler-private.h b/glib/poppler-private.h
|
|
|
|
index 7726ec7..436bca5 100644
|
|
|
|
--- a/glib/poppler-private.h
|
|
|
|
+++ b/glib/poppler-private.h
|
|
|
|
@@ -167,7 +167,7 @@ gboolean _poppler_convert_pdf_date_to_gtime (const GooString *date,
|
2021-01-19 20:06:56 +00:00
|
|
|
#define POPPLER_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) \
|
|
|
|
GType type_name##_get_type(void) \
|
|
|
|
{ \
|
|
|
|
- static volatile gsize g_define_type_id__volatile = 0; \
|
|
|
|
+ static gsize g_define_type_id__volatile = 0; \
|
|
|
|
if (g_once_init_enter(&g_define_type_id__volatile)) { \
|
|
|
|
GType g_define_type_id = g_boxed_type_register_static(g_intern_static_string(#TypeName), (GBoxedCopyFunc)copy_func, (GBoxedFreeFunc)free_func); \
|
|
|
|
g_once_init_leave(&g_define_type_id__volatile, g_define_type_id); \
|