[fpc-devel] Windows Defines

Oro06 orinaudo at gmail.com
Fri Feb 17 13:23:51 CET 2006


Daniël Mantione wrote:

>Op Fri, 17 Feb 2006, schreef Felipe Monteiro de Carvalho:
>
>  
>
>>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.
>>    
>>
>
>{$ifdef win32}
>  {$define windows}
>{$endif}
>
>{$ifdef wince}
>  {$define windows}
>{$endif}
>
>... should solve the problem for the time being.
>
>Daniël
>
>  
>
this could not work ? (i think i already use it )

{$if defined(win32) or defined(wince)}

{$endif}



>_______________________________________________
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-devel
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20060217/aea9361b/attachment.html>


More information about the fpc-devel mailing list