From 56a80de85c6e251468b6b0086b9ef5b267e39322 Mon Sep 17 00:00:00 2001 From: Lucas Russo <lerwys@gmail.com> Date: Tue, 19 Apr 2016 09:58:54 -0300 Subject: [PATCH] include/mem_layout_common.h: add "C" header guard for C++ compatibility --- include/mem_layout_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/mem_layout_common.h b/include/mem_layout_common.h index e6a3ae76..2ce9d9e3 100644 --- a/include/mem_layout_common.h +++ b/include/mem_layout_common.h @@ -1,6 +1,10 @@ #ifndef _MEM_LAYOUT_COMMON_ #define _MEM_LAYOUT_COMMON_ +#ifdef __cplusplus +extern "C" { +#endif + #include "pcie_regs.h" /* FMC_ACTIVE_CLK Component */ @@ -82,4 +86,8 @@ /* Large Memory Addresses */ #define LARGE_MEM_ADDR (BAR2_ADDR | LARGE_MEM_RAW_ADDR) +#ifdef __cplusplus +} +#endif + #endif -- GitLab