ICU-1008 Don't do static init when threads are disabled.
X-SVN-Rev: 5629
This commit is contained in:
parent
17ea6be691
commit
8f53df7e76
@ -7,12 +7,15 @@
|
||||
|
||||
#include "umutex.h"
|
||||
|
||||
int GlobalMutexInitialize()
|
||||
/* Initialize the global mutex only when we can use it. */
|
||||
#if (ICU_USE_THREADS == 1)
|
||||
|
||||
static int GlobalMutexInitialize()
|
||||
{
|
||||
umtx_init( NULL );
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int initializesGlobalMutex = GlobalMutexInitialize();
|
||||
|
||||
|
||||
|
||||
#endif /* ICU_USE_THREADS==1 */
|
||||
|
Loading…
Reference in New Issue
Block a user