X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/letest/letsutil.cpp?ds=sidebyside diff --git a/icuSources/test/letest/letsutil.cpp b/icuSources/test/letest/letsutil.cpp index 67713f7e..0c642281 100644 --- a/icuSources/test/letest/letsutil.cpp +++ b/icuSources/test/letest/letsutil.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * - * Copyright (C) 1999-2008, International Business Machines + * Copyright (C) 1999-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -20,7 +20,9 @@ #include "layout/LayoutEngine.h" #include "layout/LELanguages.h" +#ifndef USING_ICULEHB #include "OpenTypeLayoutEngine.h" +#endif #include "letest.h" #include "letsutil.h" @@ -102,11 +104,13 @@ le_int32 getLanguageCode(const char *lang) LETag langTag = (LETag) ((lang[0] << 24) + (lang[1] << 16) + (lang[2] << 8) + 0x20); +#ifndef USING_ICULEHB for (le_int32 i = 0; i < languageCodeCount; i += 1) { if (langTag == OpenTypeLayoutEngine::languageTags[i]) { return i; } } +#endif return -1; }