]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/legacy/oldcol.cpp
ICU-511.35.tar.gz
[apple/icu.git] / icuSources / samples / legacy / oldcol.cpp
index a85792bf6d4ec9400f6abee93da3469724137e0a..c56ff2fcf6af69d96e563f140f8447f7ffe39658 100644 (file)
@@ -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 <stdio.h>
 #include <stdlib.h>
+#include <unicode/putil.h>
 #include <unicode/ucol.h>
 
 // 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;