summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShell <[email protected]>2023-03-13 19:09:34 +0800
committerGitHub <[email protected]>2023-03-13 19:09:34 +0800
commitfcc01a617d62d72ba282580d4810d23ec0a1325f (patch)
tree1318aa47cb3fea3d01fcebdba8114a6a75f5c5d5 /include
parent34bf77b8e35489858901af055202bdb30b047e0b (diff)
[rt-smart] Fix return value in syscall (#7045)
* [timer] fix sys return value to avoid outdated errno * [rtdef] add wrap to stringify * [syscall] return value in rt errno should be recycle immediately after call to posix layer * [syscall] return type of syscall should be long errno should be recycle immediately after call to rt posix layer to avoid outdated value * [format] move prototype to header file * [fix] futex definition conflict
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index e72f9226fa..eda6f4ba2d 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -188,7 +188,7 @@ typedef __gnuc_va_list va_list;
#define va_end(v) __builtin_va_end(v)
#define va_arg(v,l) __builtin_va_arg(v,l)
#endif /* RT_USING_LIBC */
-#define __RT_STRINGIFY(x...) #x
+#define __RT_STRINGIFY(x...) (#x)
#define RT_STRINGIFY(x...) __RT_STRINGIFY(x)
#define rt_section(x) __attribute__((section(x)))
#define rt_used __attribute__((used))