1
0
Fork 0
forked from nuttx/nuttx-update

nuttx/elf.h: Fix build error with unknown type name 'bool'.

nuttx/include/nuttx/elf.h:118:1: error: unknown type name 'bool'
  118 | bool up_checkarch(FAR const Elf_Ehdr *hdr);
      | ^~~~
nuttx/include/nuttx/elf.h:30:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
   29 | #include <arch/elf.h>
  +++ |+#include <stdbool.h>
   30 |

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2024-08-12 21:04:20 +08:00 committed by Xiang Xiao
parent ca189ccaf2
commit 8d7ee794f4

View file

@ -29,6 +29,7 @@
#include <elf.h>
#include <arch/elf.h>
#include <stdbool.h>
/****************************************************************************
* Pre-processor Definitions