X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/common/udata.cpp?ds=sidebyside diff --git a/icuSources/common/udata.cpp b/icuSources/common/udata.cpp index 8213beae..0837893e 100644 --- a/icuSources/common/udata.cpp +++ b/icuSources/common/udata.cpp @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 1999-2010, International Business Machines +* Copyright (C) 1999-2012, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -14,9 +14,9 @@ * created by: Markus W. Scherer */ -#include "unicode/utypes.h" /* U_LINUX */ +#include "unicode/utypes.h" /* U_PLATFORM etc. */ -#ifdef U_LINUX +#ifdef __GNUC__ /* if gcc #define ATTRIBUTE_WEAK __attribute__ ((weak)) might have to #include some other header @@ -75,7 +75,7 @@ might have to #include some other header U_NAMESPACE_USE /* - * Forwards + * Forward declarations */ static UDataMemory *udata_findCachedData(const char *path); @@ -806,7 +806,7 @@ static UBool extendICUData(UErrorCode *pErr) * Use a specific mutex to avoid nested locks of the global mutex. */ #if MAP_IMPLEMENTATION==MAP_STDIO - static UMTX extendICUDataMutex = NULL; + static UMutex extendICUDataMutex = U_MUTEX_INITIALIZER; umtx_lock(&extendICUDataMutex); #endif if(!gHaveTriedToLoadCommonData) { @@ -828,7 +828,7 @@ static UBool extendICUData(UErrorCode *pErr) /* fields in the UDataMemory that we're assigning */ /* to CommonICUData. */ - didUpdate = + didUpdate = /* no longer using this result */ setCommonICUData(©PData,/* The new common data. */ FALSE, /* No warnings if write didn't happen */ pErr); /* setCommonICUData honors errors; NOP if error set */