From: Justin Lebar Date: Wed, 26 Oct 2016 22:13:20 +0000 (+0000) Subject: [CUDA] Switch cuda_wrappers/complex to use a proper include guard instead of #pragma... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=544f03b560c821b57f542a877cd5873a3ff6e3b7;p=clang [CUDA] Switch cuda_wrappers/complex to use a proper include guard instead of #pragma once. This is consistent with the rest of our internal headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285250 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/cuda_wrappers/complex b/lib/Headers/cuda_wrappers/complex index 01e097ff06..11d40a82a8 100644 --- a/lib/Headers/cuda_wrappers/complex +++ b/lib/Headers/cuda_wrappers/complex @@ -21,7 +21,8 @@ *===-----------------------------------------------------------------------=== */ -#pragma once +#ifndef __CLANG_CUDA_WRAPPERS_COMPLEX +#define __CLANG_CUDA_WRAPPERS_COMPLEX // Wrapper around that forces its functions to be __host__ // __device__. @@ -77,3 +78,5 @@ #pragma pop_macro("_GLIBCXX_USE_C99_COMPLEX") #pragma clang force_cuda_host_device end + +#endif // include guard