spack/var/spack/repos/builtin/packages/libpciaccess/nvhpc.patch
Scott McMillan 0015dd0bf8
Enable packages to use the NVIDIA HPC SDK (#19452)
* Enable packages to use the NVIDIA HPC SDK

* fix linter and review items

* fix linter issue

Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
2020-10-22 16:42:48 -05:00

12 lines
371 B
Diff

--- a/include/pciaccess.h 2020-08-07 11:43:47.395032509 -0700
+++ b/include/pciaccess.h 2020-08-07 11:44:13.384136014 -0700
@@ -59,7 +59,7 @@
#include <inttypes.h>
-#if (__GNUC__ >= 3) || (__SUNPRO_C >= 0x5130)
+#if (((__GNUC__ >= 3) || (__SUNPRO_C >= 0x5130)) && !defined __NVCOMPILER)
#define __deprecated __attribute__((deprecated))
#else
#define __deprecated