ICU-1008 Don't do static init when threads are disabled.

X-SVN-Rev: 5629
This commit is contained in:
George Rhoten 2001-08-30 17:09:43 +00:00
parent 17ea6be691
commit 8f53df7e76

View File

@ -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 */