/********************************************************************
* COPYRIGHT:
- * Copyright (C) 2001 IBM, Inc. All Rights Reserved.
+ * Copyright (C) 2001-2011 International Business Machines Corporation
+ * and others. All Rights Reserved.
*
********************************************************************/
/********************************************************************************
*/
#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_file_ = getBuffer(m_fileLen_, status);
if(status== U_ILLEGAL_ARGUMENT_ERROR){
- fprintf(stderr, gUsageString, "normperf");
+ fprintf(stderr, gUsageString, "ubrkperf");
fprintf(stderr, "\t-m or --mode Required mode for breakiterator: char, word, line or sentence\n");
return;