[fpc-pascal] Compiling JCL and ULARGE_INTEGER

Juha Manninen juha.manninen at phnet.fi
Fri Oct 30 22:25:52 CET 2009


In my project I include JclCompression unit from jcl 2.01.
Compilation ends with error:
  Identifier not found "ULARGE_INTEGER"
in JclBase.pas.

The code defines ULARGE_INTEGER just before the error line, but only if FPC is 
not defined! Why so? Should ULARGE_INTEGER be defined somewhere in fpc 
libraries. Didn't find it.


// Redefinition of ULARGE_INTEGER to relieve dependency on Windows.pas
type
  {$IFNDEF FPC}
  PULARGE_INTEGER = ^ULARGE_INTEGER;
  {$EXTERNALSYM PULARGE_INTEGER}
  ULARGE_INTEGER = record
    case Integer of
    0:
     (LowPart: LongWord;
      HighPart: LongWord);
    1:
     (QuadPart: Int64);
  end;
  {$EXTERNALSYM ULARGE_INTEGER}
  {$ENDIF ~FPC}
  TJclULargeInteger = ULARGE_INTEGER;
  PJclULargeInteger = PULARGE_INTEGER;



Juha Manninen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20091030/697a6144/attachment.html>


More information about the fpc-pascal mailing list