2023-12-01 22:39:38 +03:00
|
|
|
#ifndef __GETCH_H__
|
|
|
|
#define __GETCH_H__
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <conio.h>
|
|
|
|
#define getch _getch
|
2023-12-17 00:41:42 +03:00
|
|
|
inline int getchInit(void) { return 0; }
|
2023-12-01 22:39:38 +03:00
|
|
|
#else
|
|
|
|
int getch(void);
|
2023-12-17 00:41:42 +03:00
|
|
|
int getchInit(void);
|
2023-12-01 22:39:38 +03:00
|
|
|
#endif /* _WIN32 */
|
|
|
|
|
|
|
|
#endif /* __GETCH_H__ */
|