Skip to content
Snippets Groups Projects
Commit a85983e8 authored by gwenn's avatar gwenn
Browse files

Try to fix windows build.

parent a2047fea
No related branches found
No related tags found
No related merge requests found
extern crate nix;
extern crate libc;
use std;
use std::io::Read;
use libc;
use nix;
use nix::sys::termios;
use char_iter;
use consts::{self, KeyPress};
use ::Result;
......
extern crate kernel32;
extern crate winapi;
use std::io;
use std::marker::PhantomData;
use kernel32;
use winapi;
use ::Result;
pub type Handle = winapi::HANDLE;
......@@ -21,6 +21,7 @@ fn get_std_handle(fd: winapi::DWORD) -> Result<winapi::HANDLE> {
Ok(handle)
}
#[macro_export]
macro_rules! check {
($funcall:expr) => {
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment