felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=c316a2ef372e53b0c9374b5ddca0f8c33f05d9e2
commit c316a2ef372e53b0c9374b5ddca0f8c33f05d9e2 Author: Lauro Moura <lauromo...@expertisesolutions.com.br> Date: Tue Nov 7 17:01:56 2017 -0300 ecore: Fix compilation for GCC 4 Summary: GCC4 support compound literals for static initializers only in C89. This commit reverts to the previous behavior when using this version. Currently we are using it to build on Windows. Reviewers: felipealmeida, cedric, barbieri Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5518 --- src/lib/ecore/ecore_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index e0099f0033..a854397dab 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -285,7 +285,12 @@ int in_main_loop = 0; static Eina_List *_pending_futures = NULL; static Eina_List *_pending_promises = NULL; +#if (defined __GNUC__) && (__GNUC__ <= 4) +// GCC 4 does not support compound literal for statics initializers in C99 +static Eina_Value _ecore_exit_code = {0}; +# else static Eina_Value _ecore_exit_code = EINA_VALUE_EMPTY; +#endif static int do_quit = 0; static Ecore_Fd_Handler *fd_handlers = NULL; static Ecore_Fd_Handler *fd_handler_current = NULL; --