mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 15:47:54 +02:00
* Define INVALID_HANDLE_VALUE for Delphi compatibility
This commit is contained in:
parent
54b8de47f0
commit
ff8511f2f1
@ -473,3 +473,8 @@ Type
|
||||
|
||||
Function GetCompiledArchitecture : TOSVersion.TArchitecture;
|
||||
Function GetCompiledPlatform : TOSVersion.TPlatform;
|
||||
|
||||
{$IFNDEF HAS_INVALIDHANDLE}
|
||||
const
|
||||
INVALID_HANDLE_VALUE = DWORD(-1);
|
||||
{$ENDIF}
|
||||
|
@ -49,6 +49,10 @@ uses
|
||||
{$DEFINE OS_FILESETDATEBYNAME}
|
||||
{$DEFINE HAS_FILEGETDATETIMEINFO}
|
||||
|
||||
{$DEFINE HAS_INVALIDHANDLE}
|
||||
const
|
||||
INVALID_HANDLE_VALUE = {$IFDEF FPC_DOTTEDUNITS}WinApi.{$ENDIF}Windows.INVALID_HANDLE_VALUE;
|
||||
|
||||
// this target has an fileflush implementation, don't include dummy
|
||||
{$DEFINE SYSUTILS_HAS_FILEFLUSH_IMPL}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user