[libdrm] amdgpu: add missing extern "C" headers

Submitted by Xie, AlexBin on May 15, 2017, 1:06 a.m.

Details

Message ID MWHPR1201MB0045EF5693B74C28F9021B36F2E10@MWHPR1201MB0045.namprd12.prod.outlook.com
State New
Headers show
Series "amdgpu: add missing extern "C" headers" ( rev: 2 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Xie, AlexBin May 15, 2017, 1:06 a.m.
amdgpu/amdgpu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

--
2.9.3


Reviewed by: Alex Xie <AlexBin.Xie@amd.com>

Patch hide | download patch | download mbox

diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index fdea905..1901fa8 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -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_ */