From 1c00ad29b8186d3462261dfbddaa30f89591edc0 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sun, 20 Oct 2002 04:30:28 +0000 Subject: 2002-10-19 Danny Smith * crt1.c: Define new macro __IN_MINGW_RUNTIME before including stdlib.h. Comment on reason. Define WIN32_MEAN_AND_LEAN before including windows.h * include/stdlib.h (_fmode): Protect declaration as dllimported variable with __IN_MINGW_RUNTIME. 2002-10-19 Igor Pechtchanski * crt1.c: Include stdlib.h. --- winsup/mingw/include/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/mingw/include/stdlib.h') diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 468bac1af..30ff29c63 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -284,7 +284,7 @@ wchar_t** __p__wpgmptr(void); * This variable determines the default file mode. * TODO: Which flags work? */ -#ifndef __DECLSPEC_SUPPORTED +#if !defined (__DECLSPEC_SUPPORTED) || defined (__IN_MINGW_RUNTIME) #ifdef __MSVCRT__ extern int* _imp___fmode; @@ -404,7 +404,7 @@ extern __inline__ void _Exit(int status) { _exit(status); } #endif /* _onexit is MS extension. Use atexit for portability. */ -typedef int (* _onexit_t)(void); +typedef int (* _onexit_t)(void); _onexit_t _onexit( _onexit_t ); int _putenv (const char*); -- cgit v1.2.3