ac: add missing extern "C" guards
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 13 May 2017 20:59:19 +0000 (22:59 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 18 May 2017 09:48:53 +0000 (11:48 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_gpu_info.h
src/amd/common/ac_surface.h

index 9bf2b84d85183ea4aec9a5d8d9f04976c5d1521b..d8029ef175b9763b4417d659d2d0d02f81eafe82 100644 (file)
 
 #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 */
index bfd2a9577524f12faf2b4468a6937c9f173021a9..db01e741e9b281264b341f1b2df472694e8cb991 100644 (file)
 
 #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 */