ICU-1962 Still define fgClassID when threads are disabled.

X-SVN-Rev: 9329
This commit is contained in:
George Rhoten 2002-07-25 15:25:44 +00:00
parent 3824603dee
commit 4a9e048769

View file

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