delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/20/20:45:20

Date: Mon, 20 Oct 1997 17:43:15 -0700 (PDT)
Message-Id: <199710210043.RAA15273@adit.ap.net>
Mime-Version: 1.0
To: tanph AT bj DOT col DOT com DOT cn, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: function prototye

At 02:07  10/20/1997 +0000, tanph AT bj DOT col DOT com DOT cn wrote:
>
>Perhaps I should post to the GCC's mailing list, but I don't know 
>its exact address.
>
>I use rsxntdj to develop Win32 programming and encountered 
>the following function prototype definition in a header file:
>
>PASCAL void *func(PASCAL void *(void)); 
>
>I have tried:
>
>__attribute__(stdcall) void *func(
>	__attribute__(stdcall) void *(void));
>__attribute__(stdcall) void *func(
>	void *(void) __attribute__(stdcall));
>
>But gcc don't compile it, how to convert this definition to a form 
>gcc likes? 
Try enclosing `stdcall' in two sets of parenthesis. i.e.:
`__attribute__((stdcall))'. This is how the docs say to do it.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019