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

X-SVN-Rev: 5630
This commit is contained in:
George Rhoten 2001-08-30 17:52:53 +00:00
parent 8f53df7e76
commit 5064a00b19
2 changed files with 10 additions and 10 deletions

View File

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

View File

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