--- mstools/h/conio.h 2018/08/09 18:20:01 1.1 +++ mstools/h/conio.h 2018/08/09 18:23:05 1.1.1.4 @@ -1,11 +1,11 @@ /*** *conio.h - console and port I/O declarations * -* Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This include file contains the function declarations for -* the MS C V2.03 compatible console and port I/O routines. +* the MS C V2.03 compatible console I/O routines. * ****/ @@ -16,21 +16,40 @@ extern "C" { #endif -#if (_MSC_VER <= 600) -#define __cdecl _cdecl +/* + * Conditional macro definition for function calling type and variable type + * qualifiers. + */ +#if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) ) + +/* + * Definitions for MS C8-32 (386/486) compiler + */ +#define _CRTAPI1 __cdecl +#define _CRTAPI2 __cdecl + +#else + +/* + * Other compilers (e.g., MIPS) + */ +#define _CRTAPI1 +#define _CRTAPI2 + #endif + /* function prototypes */ -char * _cgets(char *); -int _cprintf(const char *, ...); -int _cputs(const char *); -int _cscanf(const char *, ...); -int _getch(void); -int _getche(void); -int _kbhit(void); -int _putch(int); -int _ungetch(int); +char * _CRTAPI1 _cgets(char *); +int _CRTAPI2 _cprintf(const char *, ...); +int _CRTAPI1 _cputs(const char *); +int _CRTAPI2 _cscanf(const char *, ...); +int _CRTAPI1 _getch(void); +int _CRTAPI1 _getche(void); +int _CRTAPI1 _kbhit(void); +int _CRTAPI1 _putch(int); +int _CRTAPI1 _ungetch(int); #if !__STDC__