On 07 Sep 2007, at 12:54, Adriaan van Os wrote:
I am trying to find out whether or not to use an underscore prefix
when declaring external C functions in FPC using 'external name
xxx'. It looks like on Windows the underscore is not needed,
whereas on Mac OS X the underscore is required, e
Jonas Maebe wrote:
Is this just a mess or do I miss the true logic behind it ?
If you declare an external function/procedure as "cdecl", the compiler
with /always/ add the necessary C-prefix (if any) to the external name.
I see, so if I add
{$ifdef FPC}
{$calling cdecl}
{$endif
and skip t
I am trying to find out whether or not to use an underscore prefix when declaring external C
functions in FPC using 'external name xxx'. It looks like on Windows the underscore is not needed,
whereas on Mac OS X the underscore is required, even when on both platforms 'nm' reveals that the
to-be
On 07 Sep 2007, at 14:31, Adriaan van Os wrote:
Jonas Maebe wrote:
Is this just a mess or do I miss the true logic behind it ?
If you declare an external function/procedure as "cdecl", the
compiler with /always/ add the necessary C-prefix (if any) to the
external name.
I see, so if I ad
On 2 Sep 07, at 7:58, Marc Santhoff wrote:
Hi,
> I've read in the docs for the crt-unit that the procedure "sound()" does
> not work on windows.
>
> Since I'm searching for a portable way of playing simple tones
> (frequency & duration) I want to know if there is something as
> replacement for