Parcourir la source

Use openlibm's fenv.h

Jeremy Soller il y a 6 ans
Parent
commit
c6d42dd9e3
5 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 2 0
      include/fenv.h
  2. 0 0
      src/header/_fenv/cbindgen.toml
  3. 0 0
      src/header/_fenv/mod.rs
  4. 1 1
      src/header/float/mod.rs
  5. 1 1
      src/header/mod.rs

+ 2 - 0
include/fenv.h

@@ -0,0 +1,2 @@
+#include <openlibm_fenv.h>
+#undef I

+ 0 - 0
src/header/fenv/cbindgen.toml → src/header/_fenv/cbindgen.toml


+ 0 - 0
src/header/fenv/mod.rs → src/header/_fenv/mod.rs


+ 1 - 1
src/header/float/mod.rs

@@ -1,7 +1,7 @@
 //! float.h implementation for Redox, following
 //! http://pubs.opengroup.org/onlinepubs/7908799/xsh/float.h.html
 
-use header::fenv::{fegetround, FE_TONEAREST};
+use header::_fenv::{fegetround, FE_TONEAREST};
 use platform::types::*;
 
 pub const FLT_RADIX: c_int = 2;

+ 1 - 1
src/header/mod.rs

@@ -5,7 +5,7 @@ pub mod ctype;
 pub mod dirent;
 pub mod errno;
 pub mod fcntl;
-pub mod fenv;
+pub mod _fenv;
 pub mod float;
 pub mod fnmatch;
 pub mod getopt;