diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-13 22:59:19 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-18 11:48:53 +0200 |
commit | 70215a23c656531dfd1650054ea497a860d2ba39 (patch) | |
tree | 8cd1c041dde1c76317bbdfb988fc6e89af5d41d9 /src/amd/common/ac_gpu_info.h | |
parent | 6c01c4b907fa43daaca6d0c0e23db4787611a165 (diff) |
ac: add missing extern "C" guards
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.h')
-rw-r--r-- | src/amd/common/ac_gpu_info.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <amdgpu.h> +#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 */ |