Browse Source

Fix conditional compilation of sys/mman.h

Angelo Bulfone 6 năm trước cách đây
mục cha
commit
31fc29e70c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/header/sys_mman/cbindgen.toml

+ 4 - 0
src/header/sys_mman/cbindgen.toml

@@ -4,5 +4,9 @@ trailer = "#include <bits/sys/mman.h>"
 language = "C"
 style = "Tag"
 
+[defines]
+"target_os=linux" = "__linux__"
+"target_os=redox" = "__redox__"
+
 [enum]
 prefix_with_name = true