mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 19:59:38 +00:00
Fix mingw.org's MinGW GCC 9 warning about 'execve'
* nt/inc/ms-w32.h (execve) [__GNUC__ > 9]: Provide a different prototype for mingw.org's MinGW as well, to match the GCC builtin.
This commit is contained in:
parent
bd7b681dc4
commit
a8ad94cd2f
1 changed files with 5 additions and 0 deletions
|
@ -309,7 +309,12 @@ extern intptr_t _execvp (const char *, char **);
|
||||||
the code that references it is still compiled. */
|
the code that references it is still compiled. */
|
||||||
extern int execve (const char *, char * const *, char * const *);
|
extern int execve (const char *, char * const *, char * const *);
|
||||||
#else
|
#else
|
||||||
|
/* mingw.org's MinGW GCC 9.x has the same built-in prototype... */
|
||||||
|
# if __GNUC__ >= 9
|
||||||
|
extern int execve (const char *, char * const *, char * const *);
|
||||||
|
# else
|
||||||
extern intptr_t execve (const char *, char * const *, char * const *);
|
extern intptr_t execve (const char *, char * const *, char * const *);
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#define tcdrain _commit
|
#define tcdrain _commit
|
||||||
#define fdopen _fdopen
|
#define fdopen _fdopen
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue