| Index: source/tools/toolutil/toolutil.cpp
|
| diff --git a/source/tools/toolutil/toolutil.cpp b/source/tools/toolutil/toolutil.cpp
|
| index 038f21b52ae9b84c5ecfed6ae1762b761453ba62..6d90efc297c277e398c57d65d5df8dfff4a78af3 100644
|
| --- a/source/tools/toolutil/toolutil.cpp
|
| +++ b/source/tools/toolutil/toolutil.cpp
|
| @@ -1,7 +1,7 @@
|
| /*
|
| *******************************************************************************
|
| *
|
| -* Copyright (C) 1999-2013, International Business Machines
|
| +* Copyright (C) 1999-2014, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| *******************************************************************************
|
| @@ -18,6 +18,7 @@
|
| * This file contains utility functions for ICU tools like genccode.
|
| */
|
|
|
| +#include "unicode/platform.h"
|
| #if U_PLATFORM == U_PF_MINGW
|
| // *cough* - for struct stat
|
| #ifdef __STRICT_ANSI__
|
| @@ -161,7 +162,10 @@ findBasename(const char *filename) {
|
| const char *basename=uprv_strrchr(filename, U_FILE_SEP_CHAR);
|
|
|
| #if U_FILE_ALT_SEP_CHAR!=U_FILE_SEP_CHAR
|
| - if(basename==NULL) {
|
| +#if !(U_PLATFORM == U_PF_CYGWIN && U_PLATFORM_USES_ONLY_WIN32_API)
|
| + if(basename==NULL)
|
| +#endif
|
| + {
|
| /* Use lenient matching on Windows, which can accept either \ or /
|
| This is useful for environments like Win32+CygWin which have both.
|
| */
|
|
|