summaryrefslogtreecommitdiffstats
path: root/osdep/getch2.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/getch2.h')
-rw-r--r--osdep/getch2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/osdep/getch2.h b/osdep/getch2.h
index 3c015ba9bb..c2e14aa5ee 100644
--- a/osdep/getch2.h
+++ b/osdep/getch2.h
@@ -24,6 +24,15 @@ extern void getch2_disable(void);
/* Read a character or a special key code (see keycodes.h) */
extern void getch2(void);
+/* slave cmd function for Windows and OS/2 */
extern int mp_input_slave_cmd_func(int fd,char* dest,int size);
+#if defined(__MINGW32__) || defined(__OS2__)
+#define USE_SELECT 0
+#define MP_INPUT_SLAVE_CMD_FUNC mp_input_slave_cmd_func
+#else
+#define USE_SELECT 1
+#define MP_INPUT_SLAVE_CMD_FUNC NULL
+#endif
+
#endif /* GETCH2_H */