mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix GSL_SUPPRESS definition when nvcc is in-use (#1064)
This commit is contained in:
parent
d69e578519
commit
517ed29228
@ -48,7 +48,7 @@
|
|||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]]
|
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]]
|
||||||
#else
|
#else
|
||||||
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
|
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__)
|
||||||
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]]
|
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]]
|
||||||
#else
|
#else
|
||||||
#define GSL_SUPPRESS(x)
|
#define GSL_SUPPRESS(x)
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]]
|
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]]
|
||||||
#else
|
#else
|
||||||
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
|
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__)
|
||||||
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]]
|
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]]
|
||||||
#else
|
#else
|
||||||
#define GSL_SUPPRESS(x)
|
#define GSL_SUPPRESS(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user