Fix platform

- Add cfg to extern crate sc. It is not used by redox.
 - Fix bad syntax in brk implementation for redox
 - nits
   - style: update brk implementation for linux
   - style: no space between not operator and ptr.is_null
   - style: should be a space around = in module path
This commit is contained in:
Dan Robertson
2018-03-06 13:16:03 +00:00
committed by Dan Robertson
parent a808dfe39c
commit 2096b85115
5 changed files with 41 additions and 81 deletions
+1
View File
@@ -3,6 +3,7 @@
#![no_std]
#![allow(non_camel_case_types)]
#[cfg(all(not(feature="no_std"), target_os = "linux"))]
#[macro_use]
extern crate sc;