VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/conio.h@ 19711

最後變更 在這個檔案從19711是 19678,由 vboxsync 提交於 16 年 前

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.4 KB
 
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/*
9 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
10 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
11 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
12 * a choice of LGPL license versions is made available with the language indicating
13 * that LGPLv2 or any later version may be used, or where a choice of which version
14 * of the LGPL is applied is otherwise unspecified.
15 */
16
17#ifndef __WINE_CONIO_H
18#define __WINE_CONIO_H
19
20#include <crtdefs.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26char* __cdecl _cgets(char*);
27int __cdecl _cprintf(const char*,...);
28int __cdecl _cputs(const char*);
29int __cdecl _cscanf(const char*,...);
30int __cdecl _getch(void);
31int __cdecl _getche(void);
32int __cdecl _kbhit(void);
33int __cdecl _putch(int);
34int __cdecl _ungetch(int);
35
36#ifdef _M_IX86
37int __cdecl _inp(unsigned short);
38unsigned long __cdecl _inpd(unsigned short);
39unsigned short __cdecl _inpw(unsigned short);
40int __cdecl _outp(unsigned short, int);
41unsigned long __cdecl _outpd(unsigned short, unsigned long);
42unsigned short __cdecl _outpw(unsigned short, unsigned short);
43#endif
44
45#ifdef __cplusplus
46}
47#endif
48
49
50static inline char* cgets(char* str) { return _cgets(str); }
51static inline int cputs(const char* str) { return _cputs(str); }
52static inline int getch(void) { return _getch(); }
53static inline int getche(void) { return _getche(); }
54static inline int kbhit(void) { return _kbhit(); }
55static inline int putch(int c) { return _putch(c); }
56static inline int ungetch(int c) { return _ungetch(c); }
57#ifdef _M_IX86
58static inline int inp(unsigned short i) { return _inp(i); }
59static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
60static inline int outp(unsigned short i, int j) { return _outp(i, j); }
61static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
62#endif
63
64#if defined(__GNUC__) && (__GNUC__ < 4)
65extern int __cdecl cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
66extern int __cdecl cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
67#else
68#define cprintf _cprintf
69#define cscanf _cscanf
70#endif /* __GNUC__ */
71
72#endif /* __WINE_CONIO_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette