[fpc-devel]Detecting current apptype?

Peter Vreman peter at freepascal.org
Fri Dec 22 11:41:34 CET 2000


> Hello,
> 
> 	I'm currently writing some general-purpose multi-platform type units, and
> all works well except I notice that
> 	some of it doesn't work with {$apptype gui} defined. This is to be
> expected, of course, since some of it is
> 	text-mode related. I would like to use {$ifdef} statements to exclude
> certain functionality when GUI apps
> 	are being created, but I don't know how. Is there an easy way, like {$ifdef
> go32v2} sort of thing??

{$ifdef go32v2} and {$ifdef win32} and {$ifdef linux} etc. exists, see the documentation
for more info.







More information about the fpc-devel mailing list