Fixed Linux version

This commit is contained in:
Daniel Collin 2015-11-23 20:44:21 +01:00
parent 48da30a25f
commit 858b07f506
3 changed files with 8 additions and 2 deletions

View file

@ -29,7 +29,7 @@ fn main() {
Status
------
Currently Mac and Windows has been tested. Linux will be tested and verified soon.
Currently Mac, Windows has been Linux has been tested which are the supported platforms for now.
Build instructions

View file

@ -19,6 +19,13 @@ extern {
fn mfb_close();
}
#[cfg(target_os = "linux")]
#[link(name = "X11")]
extern {
fn mfb_open(name: *const c_char, width: c_int, height: c_int) -> c_int;
fn mfb_update(buffer: *mut c_void) -> c_int;
fn mfb_close();
}
///
/// Open up a window

View file

@ -1,6 +1,5 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <MiniFB.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////