windows (native) compile fix
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
#include "keycode.h"
|
#include "keycode.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__) || defined(__APPLE__)
|
||||||
// http://forum.shelek.ru/index.php/topic,9792.0.html
|
// http://forum.shelek.ru/index.php/topic,9792.0.html
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -211,7 +212,7 @@ keycode()
|
|||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
getkeycode()
|
keycode()
|
||||||
{
|
{
|
||||||
int code = -1;
|
int code = -1;
|
||||||
int key = getch();
|
int key = getch();
|
||||||
|
|||||||
Reference in New Issue
Block a user