Commit 45f069a4 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

arc: arch.h: move extern "C" after includes



Shouldn't declare this and then pull in headers, fixes
error like "util.h:41:1: error: template with C linkage"

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 36271676
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,10 +16,6 @@
#ifndef _ARC_ARCH__H_
#define _ARC_ARCH__H_

#ifdef __cplusplus
extern "C" {
#endif

#include <generated_dts_board.h>
#include <sw_isr_table.h>
#ifdef CONFIG_CPU_ARCV2
@@ -34,6 +30,10 @@ extern "C" {
#include <arch/arc/v2/addr_types.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if defined(CONFIG_MPU_STACK_GUARD) || defined(CONFIG_USERSPACE)
	#if defined(CONFIG_ARC_CORE_MPU)
		#if CONFIG_ARC_MPU_VER == 2