Browse Source

* Fix compilation for platforms that do not have unicodestring

Michaël Van Canneyt 2 years ago
parent
commit
813105ea0a
2 changed files with 4 additions and 0 deletions
  1. 2 0
      rtl/objpas/sysutils/sysutilh.inc
  2. 2 0
      rtl/objpas/sysutils/sysutils.inc

+ 2 - 0
rtl/objpas/sysutils/sysutilh.inc

@@ -336,8 +336,10 @@ Type
   { interface handling }
   { interface handling }
   {$i intfh.inc}
   {$i intfh.inc}
 
 
+{$IFDEF FPC_HAS_FEATURE_UNICODESTRINGS}
   { strange Delphi thing }
   { strange Delphi thing }
   {$i sysmarshalh.inc}
   {$i sysmarshalh.inc}
+{$ENDIF}  
 
 
   function SafeLoadLibrary(const FileName: AnsiString;
   function SafeLoadLibrary(const FileName: AnsiString;
     ErrorMode: DWord = {$ifdef windows}SEM_NOOPENFILEERRORBOX{$else windows}0{$endif windows}): HMODULE;
     ErrorMode: DWord = {$ifdef windows}SEM_NOOPENFILEERRORBOX{$else windows}0{$endif windows}): HMODULE;

+ 2 - 0
rtl/objpas/sysutils/sysutils.inc

@@ -44,8 +44,10 @@
   { Type helpers}
   { Type helpers}
   {$i syshelp.inc}
   {$i syshelp.inc}
 
 
+{$IFDEF FPC_HAS_FEATURE_UNICODESTRINGS}
   { strange Delphi thing }
   { strange Delphi thing }
   {$i sysmarshal.inc}
   {$i sysmarshal.inc}
+{$ENDIF}  
 
 
   {$ifndef OS_FILEISREADONLY}
   {$ifndef OS_FILEISREADONLY}
   Function FileIsReadOnly(const FileName: RawByteString): Boolean;
   Function FileIsReadOnly(const FileName: RawByteString): Boolean;