[fpc-devel] Windows Defines
Bogusław Brandys
brandys at o2.pl
Fri Feb 17 12:59:02 CET 2006
Felipe Monteiro de Carvalho wrote:
> Hello,
>
> I am working on the Windows CE Widgetset for Lazarus. There were some
> defines on LCL like this:
>
> {$ifdef win32}
> do something windows specific
> {$endif}
>
> But I would like those to be executed for Windows CE also, so we
> discovered that WINDOWS is defined for both on 2.1.x. Later we found
> out that it isn´t defined on 2.0.2. MSWINDOWS is defined for win32 on
> 2.0.2 but isn´t defined for WinCE on 2.1.x. So there is no define for
> both Win32 and wince that also works on 2.0.2.
>
> Suggestions are appreciated.
>
> thanks,
> --
> Felipe Monteiro de Carvalho
What about using {$ifdef win32} and for WinCE specific {$ifdef wince} ?
Regards
Boguslaw Brandys
More information about the fpc-devel
mailing list