summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/dos.h
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2001-01-28 16:40:19 +0000
committerEarnie Boyd <earnie@users.sf.net>2001-01-28 16:40:19 +0000
commit4586200df3b7712fb7fda32a73bc7b8b4bd35cfd (patch)
tree6ba4e0da97f11db3577c946e47fe745bc0d863f3 /winsup/mingw/include/dos.h
parentd28fea6f4e50dda442a52774a15fed10b264c46d (diff)
downloadcygnal-4586200df3b7712fb7fda32a73bc7b8b4bd35cfd.tar.gz
cygnal-4586200df3b7712fb7fda32a73bc7b8b4bd35cfd.tar.bz2
cygnal-4586200df3b7712fb7fda32a73bc7b8b4bd35cfd.zip
*include/stdlib.h (__p__pgmptr): add prototype.
(__p__wpgmptr): likewise. (_pgmptr_dll): move declaration from dos.h. (_wpgmptr_dll): likewise. (_pgmptr): conditional define (MSVCT/CRTDLL). (_wpgmptr): likewise. *include/dos.h (_base*_dll variables): declare only for CRTDLL. (_os*_dll variables): likewise. (_pgmptr_dll): remove declaration and associated defines to stdlib.h. (_wpgmptr_dll): likewise.
Diffstat (limited to 'winsup/mingw/include/dos.h')
-rw-r--r--winsup/mingw/include/dos.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/winsup/mingw/include/dos.h b/winsup/mingw/include/dos.h
index a67c19962..57a89b53d 100644
--- a/winsup/mingw/include/dos.h
+++ b/winsup/mingw/include/dos.h
@@ -46,15 +46,8 @@
extern "C" {
#endif
+#ifndef __MSVCRT__ /* these are in CRTDLL, but not MSVCRT */
#ifndef __DECLSPEC_SUPPORTED
-
-extern char** __imp__pgmptr_dll;
-#define _pgmptr (*__imp__pgmptr_dll)
-
-/* Wide character equivalent */
-extern wchar_t** __imp_wpgmptr_dll;
-#define _wpgmptr (*__imp__wpgmptr_dll)
-
extern unsigned int *__imp__basemajor_dll;
extern unsigned int *__imp__baseminor_dll;
extern unsigned int *__imp__baseversion_dll;
@@ -71,13 +64,6 @@ extern unsigned int *__imp__osmode_dll;
#else /* __DECLSPEC_SUPPORTED */
-__MINGW_IMPORT char* _pgmptr_dll;
-#define _pgmptr _pgmptr_dll
-
-/* Wide character equivalent */
-__MINGW_IMPORT wchar_t* _wpgmptr_dll;
-#define _wpgmptr _wpgmptr_dll
-
__MINGW_IMPORT unsigned int _basemajor_dll;
__MINGW_IMPORT unsigned int _baseminor_dll;
__MINGW_IMPORT unsigned int _baseversion_dll;
@@ -93,6 +79,7 @@ __MINGW_IMPORT unsigned int _osmode_dll;
#define _osmode _osmode_dll
#endif /* __DECLSPEC_SUPPORTED */
+#endif /* ! __MSVCRT__ */
#ifndef _DISKFREE_T_DEFINED
/* needed by _getdiskfree (also in direct.h) */