Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-rust-mirrors-rustyline
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-rust-mirrors-rustyline
Commits
a85983e8
Commit
a85983e8
authored
8 years ago
by
gwenn
Browse files
Options
Downloads
Patches
Plain Diff
Try to fix windows build.
parent
a2047fea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tty/unix.rs
+3
-3
3 additions, 3 deletions
src/tty/unix.rs
src/tty/windows.rs
+4
-3
4 additions, 3 deletions
src/tty/windows.rs
with
7 additions
and
6 deletions
src/tty/unix.rs
+
3
−
3
View file @
a85983e8
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
;
...
...
This diff is collapsed.
Click to expand it.
src/tty/windows.rs
+
4
−
3
View file @
a85983e8
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
)
=>
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment