Fixing typecast warnings generated by visual studio 2019 in examples.
This commit is contained in:
parent
4604271c6a
commit
81a7650e8d
1 changed files with 60 additions and 57 deletions
|
|
@ -64,6 +64,9 @@
|
|||
#if !defined(_WIN32)
|
||||
static int kbhit(void); // Check if a key has been pressed
|
||||
static char getch(); // Get pressed character
|
||||
#else
|
||||
#define kbhit _kbhit
|
||||
#define getch _getch
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue