From 70215a23c656531dfd1650054ea497a860d2ba39 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Sat, 13 May 2017 22:59:19 +0200 Subject: ac: add missing extern "C" guards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/amd/common/ac_gpu_info.h | 8 ++++++++ src/amd/common/ac_surface.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index 9bf2b84d851..d8029ef175b 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -30,6 +30,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct radeon_info { /* PCI info: domain:bus:dev:func */ uint32_t pci_domain; @@ -95,4 +99,8 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev, struct radeon_info *info, struct amdgpu_gpu_info *amdinfo); +#ifdef __cplusplus +} +#endif + #endif /* AC_GPU_INFO_H */ diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index bfd2a957752..db01e741e9b 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -30,6 +30,10 @@ #include "amd_family.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Forward declarations. */ typedef void* ADDR_HANDLE; @@ -208,4 +212,8 @@ int ac_compute_surface(ADDR_HANDLE addrlib, const struct radeon_info *info, enum radeon_surf_mode mode, struct radeon_surf *surf); +#ifdef __cplusplus +} +#endif + #endif /* AC_SURFACE_H */ -- cgit v1.2.3