ICU-6245 Fix build with UCONFIG_NO_SERVICE 1 (e.g. for Cygwin/MSVC) by adding dummy invocation of Mutex for that case
X-SVN-Rev: 23825
This commit is contained in:
parent
fde46fe892
commit
dc0ee6361a
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -48,6 +48,7 @@ README text !eol
|
||||
*.spp -text
|
||||
*.tri2 -text
|
||||
|
||||
icu4c/source/common/mutex.cpp -text
|
||||
icu4c/source/samples/layout/cgnomelayout.c -text
|
||||
icu4c/source/samples/ucnv/data02.bin -text
|
||||
icu4c/source/test/compat/tzone.pl -text
|
||||
|
@ -1,6 +1,6 @@
|
||||
#******************************************************************************
|
||||
#
|
||||
# Copyright (C) 1999-2007, International Business Machines
|
||||
# Copyright (C) 1999-2008, International Business Machines
|
||||
# Corporation and others. All Rights Reserved.
|
||||
#
|
||||
#******************************************************************************
|
||||
@ -85,7 +85,7 @@ uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o triedict.o \
|
||||
rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o \
|
||||
serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o \
|
||||
uidna.o usprep.o punycode.o \
|
||||
util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o
|
||||
util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o mutex.o
|
||||
|
||||
## Header files to install
|
||||
HEADERS = $(srcdir)/unicode/*.h unicode/*.h
|
||||
|
18
icu4c/source/common/mutex.cpp
Normal file
18
icu4c/source/common/mutex.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2008, International Business Machines Corporation. *
|
||||
* All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
|
||||
#if UCONFIG_NO_SERVICE
|
||||
|
||||
/* If UCONFIG_NO_SERVICE, then there is no invocation of Mutex elsewhere in
|
||||
common, so add one here to force an export */
|
||||
#include "mutex.h"
|
||||
static Mutex *aMutex = 0;
|
||||
|
||||
/* UCONFIG_NO_SERVICE */
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user