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:
Andrew Boie 2018-07-19 14:12:56 -07:00 committed by Andrew Boie
commit 362716762b

View file

@ -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