mirror of git://gcc.gnu.org/git/gcc.git
Ada: Add missing #include for MinGW
This adds a missing #include for <stdlib.h> and removes redundant ones. gcc/ada/ PR ada/123037 * rtinit.c [__MINGW32__]: Include <stdlib.h> and not <windows.h>. * rtfinal.c [__MINGW32__]: Do not include <windows.h>.
This commit is contained in:
parent
10932131fd
commit
e51d9587f8
|
|
@ -46,9 +46,7 @@ extern int __gnat_rt_init_count;
|
|||
/* see initialize.c */
|
||||
|
||||
#if defined (__MINGW32__)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include "mingw32.h"
|
||||
#include <windows.h>
|
||||
|
||||
extern CRITICAL_SECTION ProcListCS;
|
||||
extern HANDLE ProcListEvt;
|
||||
|
|
|
|||
|
|
@ -70,9 +70,8 @@ int __gnat_rt_init_count = 0;
|
|||
and finalize properly the run-time. */
|
||||
|
||||
#if defined (__MINGW32__)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <stdlib.h>
|
||||
#include "mingw32.h"
|
||||
#include <windows.h>
|
||||
|
||||
extern void __gnat_init_float (void);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue