From 50e5f184d8bed8a13f082506286b0b1eb2402748 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Tue, 29 Mar 2016 16:24:23 +0000 Subject: [PATCH] [CUDA] Add missing #undef __DEVICE__ to CUDA shim header. llvm-svn: 264742 --- clang/lib/Headers/__clang_cuda_cmath.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Headers/__clang_cuda_cmath.h b/clang/lib/Headers/__clang_cuda_cmath.h index 0d865d2..9fe3f71 100644 --- a/clang/lib/Headers/__clang_cuda_cmath.h +++ b/clang/lib/Headers/__clang_cuda_cmath.h @@ -194,4 +194,6 @@ using ::trunc; } // namespace std +#undef __DEVICE__ + #endif -- 2.7.4