mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(esp_hw_support): use elif __riscv guard in spinlock.h
spinlock.h used #else to include riscv/rv_utils.h for all non-Xtensa targets. On Linux host (neither __XTENSA__ nor __riscv defined), this pulls in a non-existent header. Change to #elif __riscv, matching esp_cpu.h's existing pattern.
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#if __XTENSA__
|
#if __XTENSA__
|
||||||
#include "xtensa/xtruntime.h"
|
#include "xtensa/xtruntime.h"
|
||||||
#include "xt_utils.h"
|
#include "xt_utils.h"
|
||||||
#else
|
#elif __riscv
|
||||||
#include "riscv/rv_utils.h"
|
#include "riscv/rv_utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user