Fixed some issues found by winapi_check.
[wine] / include / msvcrt / conio.h
1 /*
2  * Console I/O definitions
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
6  * This file is in the public domain.
7  */
8 #ifndef __WINE_CONIO_H
9 #define __WINE_CONIO_H
10
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 char*       _cgets(char*);
17 int         _cprintf(const char*,...);
18 int         _cputs(const char*);
19 int         _cscanf(const char*,...);
20 int         _getch(void);
21 int         _getche(void);
22 int         _kbhit(void);
23 int         _putch(int);
24 int         _ungetch(int);
25
26 #ifdef _M_IX86
27 int         _inp(unsigned short);
28 unsigned long _inpd(unsigned short);
29 unsigned short _inpw(unsigned short);
30 int         _outp(unsigned short, int);
31 unsigned long _outpd(unsigned short, unsigned long);
32 unsigned short _outpw(unsigned short, unsigned short);
33 #endif
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39
40 #ifndef USE_MSVCRT_PREFIX
41 #define cgets _cgets
42 #define cprintf _cprintf
43 #define cputs _cputs
44 #define cscanf _cscanf
45 #define getch _getch
46 #define getche _getche
47 #define kbhit _kbhit
48 #define putch _putch
49 #define ungetch _ungetch
50 #ifdef _M_IX86
51 #define inp _inp
52 #define inpw _inpw
53 #define outp _outp
54 #define outpw _outpw
55 #endif
56 #endif /* USE_MSVCRT_PREFIX */
57
58 #endif /* __WINE_CONIO_H */