mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
errno: Rename get_errno_ptr to __errno
Inrease the compatiblity with the third party library(e.g. newlib) Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
+2
-2
@@ -91,7 +91,7 @@
|
||||
|
||||
#ifdef __DIRECT_ERRNO_ACCESS
|
||||
|
||||
# define errno *get_errno_ptr()
|
||||
# define errno *__errno()
|
||||
# define set_errno(e) do { errno = (int)(e); } while (0)
|
||||
# define get_errno() errno
|
||||
|
||||
@@ -406,7 +406,7 @@ extern "C"
|
||||
* either as macros or via syscalls.
|
||||
*/
|
||||
|
||||
FAR int *get_errno_ptr(void);
|
||||
FAR int *__errno(void);
|
||||
|
||||
#ifndef __DIRECT_ERRNO_ACCESS
|
||||
void set_errno(int errcode);
|
||||
|
||||
Reference in New Issue
Block a user