From 5064a00b196593bf60c792479c4ec571cd0ba1c6 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 30 Aug 2001 17:52:53 +0000 Subject: [PATCH] ICU-1008 Don't do static init when threads are disabled. X-SVN-Rev: 5630 --- icu4c/source/common/umutex.c | 10 ---------- icu4c/source/common/umutex.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/icu4c/source/common/umutex.c b/icu4c/source/common/umutex.c index c0d3f89a27b..e70148309f3 100644 --- a/icu4c/source/common/umutex.c +++ b/icu4c/source/common/umutex.c @@ -35,16 +35,6 @@ /* Check our settings... */ #include "unicode/utypes.h" -/* APP_NO_THREADS is an old symbol. We'll honour it if present. */ -#ifdef APP_NO_THREADS -# define ICU_USE_THREADS 0 -#endif - -/* Default: use threads. */ -#ifndef ICU_USE_THREADS -# define ICU_USE_THREADS 1 -#endif - #if defined(POSIX) && (ICU_USE_THREADS==1) /* Usage: uncomment the following, and breakpoint WeAreDeadlocked to diff --git a/icu4c/source/common/umutex.h b/icu4c/source/common/umutex.h index f473d56d8a6..89c84322e22 100644 --- a/icu4c/source/common/umutex.h +++ b/icu4c/source/common/umutex.h @@ -24,6 +24,16 @@ typedef void * Mutex; #endif +/* APP_NO_THREADS is an old symbol. We'll honour it if present. */ +#ifdef APP_NO_THREADS +# define ICU_USE_THREADS 0 +#endif + +/* Default: use threads. */ +#ifndef ICU_USE_THREADS +# define ICU_USE_THREADS 1 +#endif + /* * Code within this library which accesses protected data should * instantiate a Mutex object while doing so. Notice that there is