[CRT] Fix some _CRTIMP

Get rid of the ugly __MINGW_IMP_SYMBOL hacks.
This commit is contained in:
Timo Kreuzer 2021-07-31 17:15:30 +02:00
parent b05cc36208
commit 379957424c
4 changed files with 12 additions and 56 deletions

View file

@ -7,7 +7,7 @@
#include <sect_attribs.h>
#include <internal.h>
__declspec(dllimport) int __cdecl __lconv_init (void);
_CRTIMP int __cdecl __lconv_init (void);
int mingw_initcharmax = 0;

View file

@ -4,11 +4,6 @@
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#undef CRTDLL
#ifndef _DLL
#define _DLL
#endif
#define SPECIAL_CRTEXE
#include <oscalls.h>
@ -25,19 +20,9 @@
#endif
/* Special handling for ARM & ARM64, __winitenv & __initenv aren't present there. */
#if !defined(__arm__) && !defined(__aarch64__)
#ifndef __winitenv
extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
#define __winitenv (* __MINGW_IMP_SYMBOL(__winitenv))
#endif
#ifndef __initenv
extern char *** __MINGW_IMP_SYMBOL(__initenv);
#define __initenv (* __MINGW_IMP_SYMBOL(__initenv))
#endif
_CRTIMP extern wchar_t** __winitenv;
_CRTIMP extern char** __initenv;
#endif
/* Hack, for bug in ld. Will be removed soon. */