add include guards for stdio bits in cbindgen
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h", "features.h"]
|
||||
include_guard = "_RELIBC_STDIO_H"
|
||||
trailer = """
|
||||
#ifndef _RELIBC_BITS_STDIO_H
|
||||
#define _RELIBC_BITS_STDIO_H
|
||||
|
||||
// XXX: this is only here because cbindgen can't handle string constants
|
||||
#define P_tmpdir "/tmp"
|
||||
|
||||
@@ -13,6 +16,8 @@ typedef struct FILE FILE;
|
||||
#define stdin stdin
|
||||
#define stdout stdout
|
||||
#define stderr stderr
|
||||
|
||||
#endif // _RELIBC_BITS_STDIO_H
|
||||
"""
|
||||
language = "C"
|
||||
style = "Type"
|
||||
|
||||
Reference in New Issue
Block a user