anchao commented on code in PR #11140: URL: https://github.com/apache/nuttx/pull/11140#discussion_r1390424401
########## include/nuttx/spinlock.h: ########## @@ -32,12 +32,12 @@ #include <nuttx/irq.h> -#ifdef CONFIG_RW_SPINLOCK -#include <stdatomic.h> +#if defined(CONFIG_RW_SPINLOCK) && !defined(__cplusplus) Review Comment: > In file included from /home/archer/code/nuttx/n1/nuttx/include/nuttx/fs/fs.h:40, > from /home/archer/code/nuttx/n1/nuttx/include/nuttx/lib/lib.h:30, > from libcxxmini/libxx_delete.cxx:26: > /home/archer/code/nuttx/n1/nuttx/include/nuttx/spinlock.h:37:14: fatal error: atomic.h: No such file or directory > 37 | # include <atomic.h> > | ^~~~~~~~~~ > compilation terminated. > make[1]: *** [Makefile:69: libxx_delete.o] Error 1 > make: *** [tools/LibTargets.mk:216: libs/libxx/libxx.a] Error 2 > make: *** Waiting for unfinished jobs.... > -- 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]
