libc: minimal: Use new ZRESTRICT macro
This lets the toolchain header files determine how to use "restrict" instead of having that decision down in the minimal libc library. Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
c00b85b0e9
commit
6336cb26d8
10 changed files with 56 additions and 84 deletions
|
@ -21,8 +21,6 @@
|
|||
/* syscall generation ignores preprocessor, ensure this is defined to ensure
|
||||
* we don't have compile errors
|
||||
*/
|
||||
#define _MLIBC_RESTRICT
|
||||
|
||||
__syscall int zephyr_read_stdin(char *buf, int nbytes);
|
||||
|
||||
__syscall int zephyr_write_stdout(const void *buf, int nbytes);
|
||||
|
@ -32,8 +30,8 @@ __syscall int zephyr_write_stdout(const void *buf, int nbytes);
|
|||
|
||||
__syscall int zephyr_fputc(int c, FILE * stream);
|
||||
|
||||
__syscall size_t zephyr_fwrite(const void *_MLIBC_RESTRICT ptr, size_t size,
|
||||
size_t nitems, FILE *_MLIBC_RESTRICT stream);
|
||||
__syscall size_t zephyr_fwrite(const void *ZRESTRICT ptr, size_t size,
|
||||
size_t nitems, FILE *ZRESTRICT stream);
|
||||
#endif /* CONFIG_NEWLIB_LIBC */
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue