mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-1962 Still define fgClassID when threads are disabled.
X-SVN-Rev: 9329
This commit is contained in:
parent
3824603dee
commit
4a9e048769
1 changed files with 8 additions and 9 deletions
|
@ -1,15 +1,20 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 1997-2001, International Business Machines
|
||||
* Copyright (C) 1997-2002, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/uobject.h"
|
||||
#include "mutex.h"
|
||||
#include "umutex.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const char Mutex::fgClassID=0;
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
/* Initialize the global mutex only when we can use it. */
|
||||
#if (ICU_USE_THREADS == 1)
|
||||
|
||||
|
@ -21,11 +26,5 @@ static int GlobalMutexInitialize()
|
|||
|
||||
static int initializesGlobalMutex = GlobalMutexInitialize();
|
||||
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const char Mutex::fgClassID=0;
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
#endif /* ICU_USE_THREADS==1 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue