diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2003-01-03 05:02:18 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2003-01-03 05:02:18 +0000 |
commit | 7b061fd844f6ade0087cfde28eea223b2aa778a2 (patch) | |
tree | 13ecb319e38fad32a82735f091d39486330d6bfb /winsup/mingw/include/stdlib.h | |
parent | c467d1396f3b7825c8925f1898f539ad491491b0 (diff) | |
download | cygnal-7b061fd844f6ade0087cfde28eea223b2aa778a2.tar.gz cygnal-7b061fd844f6ade0087cfde28eea223b2aa778a2.tar.bz2 cygnal-7b061fd844f6ade0087cfde28eea223b2aa778a2.zip |
* include/stdlib.h (_osver, _winver, _winmajor,
_winminor): Declare as direct imports from dll if
__DECLSPEC_SUPPORTED.
Diffstat (limited to 'winsup/mingw/include/stdlib.h')
-rw-r--r-- | winsup/mingw/include/stdlib.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index 349249e8c..c4a101b6e 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -226,10 +226,17 @@ extern unsigned int* __p__winver(void); extern unsigned int* __p__winmajor(void); extern unsigned int* __p__winminor(void); -#define _osver (*__p__osver()) -#define _winver (*__p__winver()) -#define _winmajor (*__p__winmajor()) -#define _winminor (*__p__winminor()) +#ifndef __DECLSPEC_SUPPORTED +# define _osver (*__p__osver()) +# define _winver (*__p__winver()) +# 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 /* Not msvcrtxx.dll, thus crtdll.dll */ |