arm: arch.h: move extern "C" after includes
Shouldn't declare this and then pull in headers, fixes errors like "util.h:41:1: error: template with C linkage" Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e24350c775
commit
362716762b
1 changed files with 3 additions and 4 deletions
|
@ -19,10 +19,6 @@
|
|||
/* Add include for DTS generated information */
|
||||
#include <generated_dts_board.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* ARM GPRs are often designated by two different names */
|
||||
#define sys_define_gpr_with_alias(name1, name2) union { u32_t name1, name2; }
|
||||
|
||||
|
@ -38,6 +34,9 @@ extern "C" {
|
|||
#include <arch/arm/cortex_m/nmi.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Declare the STACK_ALIGN_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue