Quote Originally Posted by savage
I have the feeling that under GP2X the FPC version of getenv may be broken or that SDL should be using the C getenv and not the FPC fpgetenv. Could you try the following just to be sure where the commented code is...
[pascal]{$IFDEF UNIX}
{$IFDEF FPC}
{$IFDEF GP2X}
result := getenv(name);
{$ELSE}
result := fpcgetenv(name);
{$ENDIF}
{$ENDIF}
{$ENDIF}[/pascal]
I tried that and freepascal borked at the line

Code:
  result := getenv(name);
with Identifier not found "getenv"

So it looks like I can't use getenv under the GP2X.

cheers,
Paul.