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:
Eric Botcazou 2025-12-08 22:34:20 +01:00
parent 10932131fd
commit e51d9587f8
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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);