[48fa9cedf6](https://github.com/gpac/gpac/commit/48fa9cedf6043c5975a6fb05f580a53c2cbf91cd) added a function declaration inside a function `unload_compositor()` in applications/gpac/compositor_tools.c,

```
#ifdef WIN32
	static void close_console();
	close_console();
#endif
```

This leads to a build failure on MinGW64 / GCC 11:    `error: invalid storage class for function 'close_console'`

Indeed, 6.7.1.5 of C99 states

`The declaration of an identifier for a function that has block scope shall have no explicit storage-class specifier other than extern.`

It should be moved outside. Thanks.
Illegal function declaration prevents compilation
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Illegal function declaration prevents compilation
Issue date:

--- start body ---
[48fa9cedf6](https://github.com/gpac/gpac/commit/48fa9cedf6043c5975a6fb05f580a53c2cbf91cd) added a function declaration inside a function `unload_compositor()` in applications/gpac/compositor_tools.c,

```
#ifdef WIN32
	static void close_console();
	close_console();
#endif
```

This leads to a build failure on MinGW64 / GCC 11:    `error: invalid storage class for function 'close_console'`

Indeed, 6.7.1.5 of C99 states

`The declaration of an identifier for a function that has block scope shall have no explicit storage-class specifier other than extern.`

It should be moved outside. Thanks.
--- end body ---

None