소스 검색

Fix missing types when compiling GDB

jD91mZM2 4 년 전
부모
커밋
b7053b673d
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      src/header/sys_types/cbindgen.toml

+ 11 - 2
src/header/sys_types/cbindgen.toml

@@ -1,7 +1,16 @@
-sys_includes = ["stddef.h", "sys/types_internal.h", "sys/select.h"]
+# no default C includes - they cause recursive dependencies and do weird stuff
+no_includes = true
+sys_includes = [
+    # Import most necessary, internal types first
+    "sys/types_internal.h",
+
+    "stddef.h",
+    "sys/select.h"
+]
+
 include_guard = "_SYS_TYPES_H"
 language = "C"
 style = "Tag"
 
 [enum]
-prefix_with_name = true
+prefix_with_name = true