From: Enlightenment S. <no-...@en...> - 2010-08-12 14:16:43
|
Log: Eina: "FIX" EINA_UNICODE_EMPTY_STRING. Author: tasn Date: 2010-08-12 07:16:32 -0700 (Thu, 12 Aug 2010) New Revision: 51038 Modified: trunk/eina/src/lib/eina_unicode.c Modified: trunk/eina/src/lib/eina_unicode.c =================================================================== --- trunk/eina/src/lib/eina_unicode.c 2010-08-12 13:26:09 UTC (rev 51037) +++ trunk/eina/src/lib/eina_unicode.c 2010-08-12 14:16:32 UTC (rev 51038) @@ -24,7 +24,9 @@ /* FIXME: check if sizeof(wchar_t) == sizeof(Eina_Unicode) if so, * probably better to use the standard functions */ -EAPI const Eina_Unicode *EINA_UNICODE_EMPTY_STRING = {0}; +/* Maybe I'm too tired, but this is the only thing that actually worked. */ +const Eina_Unicode _EINA_UNICODE_EMPTY_STRING[1] = {0}; +EAPI const Eina_Unicode *EINA_UNICODE_EMPTY_STRING = _EINA_UNICODE_EMPTY_STRING; /** * @brief Same as the standard strcmp just with Eina_Unicode instead of char. */ |