]> granicus.if.org Git - clang/commitdiff
[CUDA] Switch cuda_wrappers/complex to use a proper include guard instead of #pragma...
authorJustin Lebar <jlebar@google.com>
Wed, 26 Oct 2016 22:13:20 +0000 (22:13 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 26 Oct 2016 22:13:20 +0000 (22:13 +0000)
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

lib/Headers/cuda_wrappers/complex

index 01e097ff06b4e6966fa2e1d1370f30e27e9bbdd4..11d40a82a8f6ab44529b458b277758c48dc0a1f3 100644 (file)
@@ -21,7 +21,8 @@
  *===-----------------------------------------------------------------------===
  */
 
-#pragma once
+#ifndef __CLANG_CUDA_WRAPPERS_COMPLEX
+#define __CLANG_CUDA_WRAPPERS_COMPLEX
 
 // Wrapper around <complex> 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