[fpc-pascal] tlhelp32 for WinCE

2010-10-01 Thread Sven Barth
Hello together! As I need to implement tlhelp32 for Windows Mobile I plan to contribute this back to FPC as well. I'm using jwatlhelp32 from winunits-jedi as a base and now I have two possibilities to proceed: - extend jwatlhelp32 for WinCE and add it to the units compiled for WinCE (as I

Re: [fpc-pascal] tlhelp32 for WinCE

2010-10-01 Thread Marco van de Voort
In our previous episode, Sven Barth said: > As I need to implement tlhelp32 for Windows Mobile I plan to contribute > this back to FPC as well. > > I'm using jwatlhelp32 from winunits-jedi as a base and now I have two > possibilities to proceed: > > - extend jwatlhelp32 for WinCE and add it to

Re: [fpc-pascal] tlhelp32 for WinCE

2010-10-01 Thread Sven Barth
Am 01.10.2010 10:10, schrieb Marco van de Voort: In our previous episode, Sven Barth said: As I need to implement tlhelp32 for Windows Mobile I plan to contribute this back to FPC as well. I'm using jwatlhelp32 from winunits-jedi as a base and now I have two possibilities to proceed: - extend

Re: [fpc-pascal] tlhelp32 for WinCE

2010-10-01 Thread Marco van de Voort
In our previous episode, Sven Barth said: > > Copy. CE and win32/win64 are afaik separate SDKs. Moreover heavy changes to > > jwa* would make synchronizing with upstream (which I do once an year if > > there are significant differences) more difficult. > > That's why I asked ^^ > > Should I reduc

Re: [fpc-pascal] tlhelp32 for WinCE

2010-10-01 Thread Sven Barth
Am 01.10.2010 10:16, schrieb Marco van de Voort: In our previous episode, Sven Barth said: Copy. CE and win32/win64 are afaik separate SDKs. Moreover heavy changes to jwa* would make synchronizing with upstream (which I do once an year if there are significant differences) more difficult. That

[fpc-pascal] Fwd: Delphi incompatible conditionals?

2010-10-01 Thread Mark Daems
Hi, I'm trying to add following conditional code to the top of a unit that should compile in fpc and in delphi: {$IFDEF FPC}  {$IFNDEF ver1}    {$IF (fpc_version>2) or (fpc_version=2) and (fpc_release>3)}      {$info FPC version >= 2.4.0 : Should work}    {$ELSE}      {$warning FPC versions below

Re: [fpc-pascal] Fwd: Delphi incompatible conditionals?

2010-10-01 Thread Juha Manninen (gmail)
On Friday 01 October 2010 19:33:48 Mark Daems wrote: > ... > And it's a weird behaviour, because it's all within an {$IFDEF FPC} > construct. Why does delphi even try to interprete it? > > Somebody knows how to avoid the problem? Try this instead: {$IFNDEF FPC} // Can be empty {$ELSE} ... {$

Re: [fpc-pascal] Fwd: Delphi incompatible conditionals?

2010-10-01 Thread Marco van de Voort
In our previous episode, Mark Daems said: > I'm trying to add following conditional code to the top of a unit that > should compile in fpc and in delphi: > > > This seems to work well in fpc, however the delphi (7 and 2009) > compiler complains on the {$IF ...} line. > ? ? ?[DCC Error] Zeos.inc(4