X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/samples/legacy/oldcol.cpp diff --git a/icuSources/samples/legacy/oldcol.cpp b/icuSources/samples/legacy/oldcol.cpp index a85792bf..c56ff2fc 100644 --- a/icuSources/samples/legacy/oldcol.cpp +++ b/icuSources/samples/legacy/oldcol.cpp @@ -1,18 +1,18 @@ /* -******************************************************************************* -* -* Copyright (C) 2001, International Business Machines -* Corporation and others. All Rights Reserved. -* -******************************************************************************* -* file name: oldcol.cpp -* encoding: US-ASCII -* tab size: 8 (not used) -* indentation:4 -* -* created on: 2001jul24 -* created by: Vladimir Weinstein -*/ + ******************************************************************************* + * + * Copyright (C) 2001-2005, International Business Machines + * Corporation and others. All Rights Reserved. + * + ******************************************************************************* + * file name: oldcol.cpp + * encoding: US-ASCII + * tab size: 8 (not used) + * indentation:4 + * + * created on: 2001jul24 + * created by: Vladimir Weinstein + */ /****************************************************************************** * This is the module that uses old collation @@ -20,6 +20,7 @@ #include #include +#include #include // Very simple example code - sticks a sortkey in the buffer @@ -80,7 +81,7 @@ void closeCollator_legacy(void) { } -void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) { +extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) { uint32_t i = 0; int32_t keySize = 0;