Browse Source

Add __need_winit_t to wctype.h

Jeremy Soller 4 years ago
parent
commit
c7910a8754
2 changed files with 8 additions and 1 deletions
  1. 7 0
      include/bits/wctype.h
  2. 1 1
      src/header/wctype/cbindgen.toml

+ 7 - 0
include/bits/wctype.h

@@ -0,0 +1,7 @@
+#ifndef _BITS_WCTYPE_H
+#define _BITS_WCTYPE_H
+#include <stdint.h>
+
+#define __need_wint_t
+
+#endif /* _BITS_WCTYPE_H */

+ 1 - 1
src/header/wctype/cbindgen.toml

@@ -1,6 +1,6 @@
 sys_includes = ["stddef.h", "stdint.h", "time.h", "stdio.h" ]
 include_guard = "_WCTYPE_H"
-header = ""
+header = "#include <bits/wctype.h>"
 language = "C"
 style = "Type"
 no_includes = true