[ros-dev] Re: [ros-diffs] [jimtabor] 20609: Should have placed extern in there.

Thomas Weidenmueller w3seek at reactos.com
Fri Jan 6 15:07:56 CET 2006


jimtabor at svn.reactos.org wrote:
> Should have placed extern in there.
> 
> Modified: trunk/reactos/subsys/win32k/ntuser/menu.c
> 
> ------------------------------------------------------------------------
> *Modified: trunk/reactos/subsys/win32k/ntuser/menu.c*
> 
> --- trunk/reactos/subsys/win32k/ntuser/menu.c	2006-01-06 11:58:17 UTC (rev 20608)
> +++ trunk/reactos/subsys/win32k/ntuser/menu.c	2006-01-06 13:57:38 UTC (rev 20609)
> @@ -33,7 +33,7 @@
> 
>  #define NDEBUG
>  #include <debug.h>
>  
> 
> -PMENU_OBJECT FASTCALL
> 
> +extern PMENU_OBJECT FASTCALL
> 
>  IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu);
>  
>  
> 

'extern' for forward declarations of functions is obsolete. The
standards don't require it.

- Thomas


More information about the Ros-dev mailing list