Bläddra i källkod

Merge branch 'fix_includes' of https://github.com/dlrobertson/relibc into dlrobertson-fix_includes

Jeremy Soller 7 år sedan
förälder
incheckning
3e354aed04
2 ändrade filer med 4 tillägg och 1 borttagningar
  1. 2 0
      include/stdint.h
  2. 2 1
      src/resource/cbindgen.toml

+ 2 - 0
include/stdint.h

@@ -49,4 +49,6 @@ typedef int64_t intmax_t;
 #define UINTMAX_MAX UINT64_MAX
 typedef uint64_t uintmax_t;
 
+#define SIZE_MAX UINT64_MAX
+
 #endif /* _STDINT_H */

+ 2 - 1
src/resource/cbindgen.toml

@@ -1,6 +1,7 @@
-sys_includes = ["sys/types.h"]
+sys_includes = ["sys/types.h", "sys/time.h"]
 include_guard = "_SYS_RESOURCE_H"
 language = "C"
+style = "Tag"
 
 [enum]
 prefix_with_name = true