/********************************************************************
* COPYRIGHT:
- * Copyright (C) 2001-2008 International Business Machines Corporation
+ * Copyright (C) 2001-2016 International Business Machines Corporation
* and others. All Rights Reserved.
*
********************************************************************/
*********************************************************************************
*/
+#include "cmemory.h"
#include "ubrkperf.h"
#include "uoptions.h"
#include <stdio.h>
#if 0
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
#include <ApplicationServices/ApplicationServices.h>
enum{
kUCTextBreakAllMask = (kUCTextBreakClusterMask | kUCTextBreakWordMask | kUCTextBreakLineMask)
elapsedTime = timeGetTime()-startTime;
} else if(opt_mac) {
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
createMACBrkIt();
UniChar* filePtr = text;
OSStatus status = noErr;
m_fileLen_(0)
{
- _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, (int32_t)(sizeof(options)/sizeof(options[0])), options);
+ _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, UPRV_LENGTHOF(options), options);
if(options[0].doesOccur) {