This splits the picolibc helper functions into separate files instead of smashing them all together. Signed-off-by: Keith Packard <keithp@keithp.com>
21 lines
404 B
C
21 lines
404 B
C
/*
|
|
* Copyright © 2021, Keith Packard <keithp@keithp.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "picolibc-hooks.h"
|
|
|
|
#ifndef CONFIG_LIBC_ERRNO
|
|
|
|
/*
|
|
* Picolibc needs to be able to declare this itself so that the library
|
|
* doesn't end up needing zephyr header files. That means using a regular
|
|
* function instead of an inline.
|
|
*/
|
|
int *z_errno_wrap(void)
|
|
{
|
|
return z_errno();
|
|
}
|
|
|
|
#endif
|