Re: [fpc-pascal] Compiler directive: Shared Library

2011-01-28 Thread Jonas Maebe
On 28 Jan 2011, at 20:49, dib...@wp.pl wrote: > I'm looking at: > http://www.freepascal.org/docs-html/prog/progch1.html > ... and can't find any directive which tell me when I'm compiling a shared > library. For example: > > unit1 > > {$IFDEF shared_lib} > Foo: Integer; > {$ELSE} > Foo: Byte

[fpc-pascal] Compiler directive: Shared Library

2011-01-28 Thread dibo20
Hi, I'm looking at: http://www.freepascal.org/docs-html/prog/progch1.html ... and can't find any directive which tell me when I'm compiling a shared library. For example: unit1 {$IFDEF shared_lib} Foo: Integer; {$ELSE} Foo: Byte; {$ENDIF} I always must remember to add own flag in m