* include/stdlib.h (_osver, _winver, _winmajor,

_winminor): Declare as direct imports from dll if
	__DECLSPEC_SUPPORTED.
This commit is contained in:
Danny Smith 2003-01-03 05:02:18 +00:00
parent c467d1396f
commit 7b061fd844
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2003-01-03 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdlib.h (_osver, _winver, _winmajor,
_winminor): Declare as direct imports from dll if
__DECLSPEC_SUPPORTED.
2003-01-01 Danny Smith <dannysmith@users.sourceforge.net> 2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
* pseudo-reloc.c (do_pseudo_reloc): Make static. * pseudo-reloc.c (do_pseudo_reloc): Make static.

View File

@ -226,10 +226,17 @@ extern unsigned int* __p__winver(void);
extern unsigned int* __p__winmajor(void); extern unsigned int* __p__winmajor(void);
extern unsigned int* __p__winminor(void); extern unsigned int* __p__winminor(void);
#define _osver (*__p__osver()) #ifndef __DECLSPEC_SUPPORTED
#define _winver (*__p__winver()) # define _osver (*__p__osver())
#define _winmajor (*__p__winmajor()) # define _winver (*__p__winver())
#define _winminor (*__p__winminor()) # define _winmajor (*__p__winmajor())
# define _winminor (*__p__winminor())
#else
__MINGW_IMPORT unsigned int _osver;
__MINGW_IMPORT unsigned int _winver;
__MINGW_IMPORT unsigned int _winmajor;
__MINGW_IMPORT unsigned int _winminor;
#endif __DECLSPEC_SUPPORTED
#else #else
/* Not msvcrtxx.dll, thus crtdll.dll */ /* Not msvcrtxx.dll, thus crtdll.dll */