diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-10 14:59:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-10 14:59:55 +0200 |
commit | 2bace4e9629cd0ee28ae6515bbceeef5c0b7ec1b (patch) | |
tree | e3759b303a56e103dc39486e709e47912a8b272f /sal/osl | |
parent | 1acaa577b67158c060d2f57414f7aea86504a489 (diff) |
Adapt to C90
Change-Id: I491ca9ccfc5622afcec163e75792aa03a3a24a4f
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sal/osl/unx/thread.c b/sal/osl/unx/thread.c index 3b09d3f65f8f..0140936999e0 100644 --- a/sal/osl/unx/thread.c +++ b/sal/osl/unx/thread.c @@ -951,11 +951,13 @@ sal_Bool SAL_CALL osl_setThreadKeyData(oslThreadKey Key, void *pData) /*****************************************************************************/ static void osl_thread_textencoding_init_Impl (void) { + rtl_TextEncoding defaultEncoding; + /* create thread specific data key */ pthread_key_create (&(g_thread.m_textencoding.m_key), NULL); /* determine default text encoding */ - rtl_TextEncoding defaultEncoding = osl_getTextEncodingFromLocale(NULL); + defaultEncoding = osl_getTextEncodingFromLocale(NULL); OSL_ASSERT(defaultEncoding != RTL_TEXTENCODING_DONTKNOW); /* |