X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..f59164e3d128c7675a4d3934206346a3384e53a5:/icuSources/common/umapfile.h diff --git a/icuSources/common/umapfile.h b/icuSources/common/umapfile.h index f8bf77b9..2995e381 100644 --- a/icuSources/common/umapfile.h +++ b/icuSources/common/umapfile.h @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 1999-2010, International Business Machines +* Copyright (C) 1999-2011, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************/ @@ -25,6 +25,7 @@ #include "unicode/putil.h" #include "unicode/udata.h" +#include "putilimp.h" U_CFUNC UBool uprv_mapFile(UDataMemory *pdm, const char *path); U_CFUNC void uprv_unmapFile(UDataMemory *pData); @@ -38,10 +39,10 @@ U_CFUNC void uprv_unmapFile(UDataMemory *pData); #if UCONFIG_NO_FILE_IO # define MAP_IMPLEMENTATION MAP_NONE -#elif defined(U_WINDOWS) +#elif U_PLATFORM_USES_ONLY_WIN32_API # define MAP_IMPLEMENTATION MAP_WIN32 -#elif U_HAVE_MMAP || defined(OS390) -# if defined(OS390) && defined (OS390_STUBDATA) +#elif U_HAVE_MMAP || U_PLATFORM == U_PF_OS390 +# if U_PLATFORM == U_PF_OS390 && defined (OS390_STUBDATA) /* No memory mapping for 390 batch mode. Fake it using dll loading. */ # define MAP_IMPLEMENTATION MAP_390DLL # else