Commit 36271676 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

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: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent e24350c7
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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