windows (native) compile fix

This commit is contained in:
2022-09-18 19:24:28 +08:00
parent 76e3c472eb
commit 857aee0284

View File

@@ -1,10 +1,11 @@
#include "keycode.h"
#include <stdio.h>
#if defined(__linux__) || defined(__APPLE__)
// http://forum.shelek.ru/index.php/topic,9792.0.html
#include <stdlib.h>
#include <stdio.h>
#include <termios.h>
#include <string.h>
#include <unistd.h>
@@ -211,7 +212,7 @@ keycode()
#include <conio.h>
int
getkeycode()
keycode()
{
int code = -1;
int key = getch();