| Line | |
|---|
| 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 | #define __WINE_USE_MSVCRT
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | #ifdef __cplusplus
|
|---|
| 14 | extern "C" {
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | char* MSVCRT__cgets(char*);
|
|---|
| 18 | int MSVCRT__cprintf(const char*,...);
|
|---|
| 19 | int MSVCRT__cputs(const char*);
|
|---|
| 20 | int MSVCRT__cscanf(const char*,...);
|
|---|
| 21 | int MSVCRT__getch(void);
|
|---|
| 22 | int MSVCRT__getche(void);
|
|---|
| 23 | int _kbhit(void);
|
|---|
| 24 | int _putch(int);
|
|---|
| 25 | int MSVCRT__ungetch(int);
|
|---|
| 26 |
|
|---|
| 27 | #ifdef _M_IX86
|
|---|
| 28 | int _inp(unsigned short);
|
|---|
| 29 | unsigned long _inpd(unsigned short);
|
|---|
| 30 | unsigned short _inpw(unsigned short);
|
|---|
| 31 | int _outp(unsigned short, int);
|
|---|
| 32 | unsigned long _outpd(unsigned short, unsigned long);
|
|---|
| 33 | unsigned short _outpw(unsigned short, unsigned short);
|
|---|
| 34 | #endif
|
|---|
| 35 |
|
|---|
| 36 | #ifdef __cplusplus
|
|---|
| 37 | }
|
|---|
| 38 | #endif
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 | #ifndef USE_MSVCRT_PREFIX
|
|---|
| 42 | #define cgets _cgets
|
|---|
| 43 | #define cprintf _cprintf
|
|---|
| 44 | #define cputs _cputs
|
|---|
| 45 | #define cscanf _cscanf
|
|---|
| 46 | #define getch _getch
|
|---|
| 47 | #define getche _getche
|
|---|
| 48 | #define kbhit _kbhit
|
|---|
| 49 | #define putch _putch
|
|---|
| 50 | #define ungetch _ungetch
|
|---|
| 51 | #ifdef _M_IX86
|
|---|
| 52 | #define inp _inp
|
|---|
| 53 | #define inpw _inpw
|
|---|
| 54 | #define outp _outp
|
|---|
| 55 | #define outpw _outpw
|
|---|
| 56 | #endif
|
|---|
| 57 | #endif /* USE_MSVCRT_PREFIX */
|
|---|
| 58 |
|
|---|
| 59 | #endif /* __WINE_CONIO_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.