mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: allow custom header include
stdint.h is not included as part of the kernel build file for linux resulting in build failures when using this header as it is. Modified this interface to remove the restriction for using <stdint.h>. Custom build environments can include their own correct header for type definitions Jira NVGPU-8619 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Change-Id: Ida7c327a5ac4a5c7a0ed18f792a58a17dcbc36b2 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2767310 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
44587840e2
commit
fb8bfb90c3
@@ -20,7 +20,7 @@
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#else
|
||||
#elif !defined(__KERNEL__)
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdint>
|
||||
#else
|
||||
#elif !defined(__KERNEL__)
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user