diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2019-05-28 11:37:03 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-05-28 11:37:03 -0400 |
commit | a21974367ce9337fb599782ae667e6488d2a34d4 (patch) | |
tree | dece89dfbf4452a631099f8f5435b9ce01629241 | |
parent | 93909d89e5c77c0b1ae3693b10f4ca89f43fabb5 (diff) | |
download | efl-a21974367ce9337fb599782ae667e6488d2a34d4.tar.gz |
Evil: fix infinite loop with setlocale
Summary: evil_setlocale was defined as setlocale in evil_private.h *before* evil_setlocale, hence evil_setlocale was calling itself. The solution was to not call evil_private.h in evil_locale.c
Test Plan: compialtion and elementary_test
Reviewers: zmike, raster, cedric
Reviewed By: zmike
Subscribers: #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7985
Differential Revision: https://phab.enlightenment.org/D9030
-rw-r--r-- | src/lib/evil/evil_locale.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/lib/evil/evil_locale.c b/src/lib/evil/evil_locale.c index a4d056ad93..15610da6a6 100644 --- a/src/lib/evil/evil_locale.c +++ b/src/lib/evil/evil_locale.c @@ -6,7 +6,27 @@ #include <locale.h> #include <errno.h> -#include "evil_private.h" +#ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif +#include <windows.h> +#undef WIN32_LEAN_AND_MEAN + +#ifdef EAPI +# undef EAPI +#endif + +#ifdef EFL_BUILD +# ifdef DLL_EXPORT +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif +#else +# define EAPI __declspec(dllimport) +#endif + +#include "evil_locale.h" /* LC_MESSAGES */ /* * LOCALE_SISO639LANGNAME and LOCALE_SISO3166CTRYNAME need at least a buffer |