amdgpu: add missing extern "C" headers
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): mailman.39.1494763203.10449.amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
amdgpu/amdgpu.h | 8 ++++++++ 1 file changed, 8 insertions(+)
amdgpu/amdgpu.h +8 -0
@@ -30,20 +30,24 @@* User wanted to use libdrm_amdgpu functionality must include * this file. * */ #ifndef _AMDGPU_H_ #define _AMDGPU_H_ #include <stdint.h> #include <stdbool.h> +#ifdef __cplusplus +extern "C" { +#endif + struct drm_amdgpu_info_hw_ip; /*--------------------------------------------------------------------------*/ /* --------------------------- Defines ------------------------------------ */ /*--------------------------------------------------------------------------*/ /** * Define max. number of Command Buffers (IB) which could be sent to the single * hardware IP to accommodate CE/DE requirements *
@@ -1317,11 +1321,15 @@ int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem);/** * Get the ASIC marketing name * * \param dev - \c [in] Device handle. See #amdgpu_device_initialize() * * \return the constant string of the marketing name * "NULL" means the ASIC is not found */ const char *amdgpu_get_marketing_name (amdgpu_device_handle dev); +#ifdef __cplusplus +} +#endif +#endif /* #ifdef _AMDGPU_H_ */
--
2.9.3
Reviewed by: Alex Xie <[email protected]>
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx