Browse Source

* Use cwstring on non-windows

git-svn-id: trunk@41811 -
michael 6 years ago
parent
commit
afa9ef279e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/fcl-registry/examples/testunicode.pp

+ 5 - 0
packages/fcl-registry/examples/testunicode.pp

@@ -1,11 +1,16 @@
 program testunicode;
 
+{ Unicode test program using UTF8String }
+
 {$mode objfpc}{$H+}
 {$codepage utf8}
 {$IFNDEF UNIX}
 {$APPTYPE CONSOLE}
 {$ENDIF}
 uses
+{$ifdef unix}
+  cwstring,
+{$endif}
   sysutils, classes, registry;
 
 Var