zhangyu-duck commented on code in PR #19866:
URL: https://github.com/apache/nuttx/pull/19866#discussion_r3805192630
##########
include/nuttx/compiler.h:
##########
@@ -1426,6 +1426,12 @@
# define osentry_function
#endif
+/* Micro about __has_include */
+
+#ifndef __has_include
Review Comment:
"#if defined(__has_include) ## __has_include(atomic) "will also has error if
__has_include not support because the preprocessor does not short-circuit.
follow way writing style is more complicated, so i advise keep current way
if defined(__has_include)
if __has_include(atomic)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]