Explorar o código

* fix PString

Michael VAN CANNEYT %!s(int64=2) %!d(string=hai) anos
pai
achega
7edf9b3884
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      rtl/objpas/objpas.pp

+ 5 - 1
rtl/objpas/objpas.pp

@@ -12,12 +12,12 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
  **********************************************************************}
+unit objpas;
 {$Mode ObjFpc}
 {$I-}
 {$ifndef Unix}
   {$S-}
 {$endif}
-unit objpas;
 
 interface
 
@@ -37,7 +37,11 @@ interface
 {$endif CPU16}
 
        { Ansistring are the default }
+{$IF SIZEOF(Char)=2}
+       PString = PWideString;
+{$ELSE}
        PString = PAnsiString;
+{$ENDIF}
 
        { array types }
 {$ifdef CPU16}