Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datalogger.Utils : _stat not declared, compiling for ANDROID #11

Open
freitasjca opened this issue Feb 27, 2024 · 1 comment
Open

Datalogger.Utils : _stat not declared, compiling for ANDROID #11

freitasjca opened this issue Feb 27, 2024 · 1 comment

Comments

@freitasjca
Copy link

I'm using Datalogger on Android, but there's an error with code on DataLogger.Utils

function GetSize(const Path: string): Int64;

Error: _stat is not defined

Maybe can use above code to correct:

unit DataLogger.Utils;

interface
{$IFDEF ANDROID}
{$DEFINE POSIX}
{$ENDIF}

uses
{$IFDEF POSIX}
Posix.SysStat,
{$ENDIF}

@freitasjca
Copy link
Author

I haven't mentioned that compiler used was Delphi 10.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant