summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-07-17 11:12:18 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-07-17 14:23:09 -0700
commitc46a8143916f0d3f66bbdffc7107c97c88df212d (patch)
treedb58a3d4fd02ebda3830a0f69757c06dc44c6e51 /src/lib/eina
parentd902989b74cba94053b57daaa528d05b277ed3dd (diff)
eina: set EINA_VALUE_EMPTY during library init.
This is a work around compiler/linker limit on some system as reported by Romain Naour. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9348
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_value.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c
index a2f6f53..3df0baa 100644
--- a/src/lib/eina/eina_value.c
+++ b/src/lib/eina/eina_value.c
@@ -54,7 +54,7 @@ static Eina_Hash *_eina_value_inner_mps = NULL;
54static Eina_Lock _eina_value_inner_mps_lock; 54static Eina_Lock _eina_value_inner_mps_lock;
55static char *_eina_value_mp_choice = NULL; 55static char *_eina_value_mp_choice = NULL;
56static int _eina_value_log_dom = -1; 56static int _eina_value_log_dom = -1;
57static const Eina_Value _eina_value_empty = EINA_VALUE_EMPTY; 57static Eina_Value _eina_value_empty;
58 58
59#ifdef ERR 59#ifdef ERR
60#undef ERR 60#undef ERR
@@ -5400,6 +5400,7 @@ eina_value_inner_free(size_t size, void *mem)
5400Eina_Bool 5400Eina_Bool
5401eina_value_init(void) 5401eina_value_init(void)
5402{ 5402{
5403 const Eina_Value empty = EINA_VALUE_EMPTY;
5403 const char *choice, *tmp; 5404 const char *choice, *tmp;
5404 5405
5405 _eina_value_log_dom = eina_log_domain_register("eina_value", 5406 _eina_value_log_dom = eina_log_domain_register("eina_value",
@@ -5486,6 +5487,8 @@ eina_value_init(void)
5486 5487
5487 EINA_ERROR_VALUE_FAILED = eina_error_msg_static_register("Eina_Value failed to copy/convert."); 5488 EINA_ERROR_VALUE_FAILED = eina_error_msg_static_register("Eina_Value failed to copy/convert.");
5488 5489
5490 memcpy(&_eina_value_empty, &empty, sizeof (empty));
5491
5489 return EINA_TRUE; 5492 return EINA_TRUE;
5490 5493
5491 on_init_fail_hash: 5494 on_init_fail_hash: