Revert "pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++."

This reverts commit 444a9fbcd6.
This commit is contained in:
chao an 2024-10-14 10:43:19 +08:00 committed by Xiang Xiao
parent ce42a9affc
commit 2a65a34bee
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
#include <nuttx/compiler.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
# include <nuttx/atomic.h>

View File

@ -49,7 +49,7 @@
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
*/
# include <nuttx/spinlock.h>
# include <arch/spinlock.h>
#endif
/****************************************************************************