From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 2795C3857C48; Wed, 18 May 2022 10:06:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2795C3857C48 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-615] 'include/cuda/cuda.h': For C++, wrap in 'extern "C"' X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: ba8563693fb4eb1317fcbd54883516c3873782f4 X-Git-Newrev: bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab Message-Id: <20220518100657.2795C3857C48@sourceware.org> Date: Wed, 18 May 2022 10:06:57 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 10:06:57 -0000 https://gcc.gnu.org/g:bdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab commit r13-615-gbdd1dc1bfbe1492edf3ce5e4288cfbc55be329ab Author: Thomas Schwinge Date: Fri Apr 29 10:33:15 2022 +0200 'include/cuda/cuda.h': For C++, wrap in 'extern "C"' include/ * cuda/cuda.h: For C++, wrap in 'extern "C"'. Diff: --- include/cuda/cuda.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/cuda/cuda.h b/include/cuda/cuda.h index 5c813ad2cf8..d7105fb331e 100644 --- a/include/cuda/cuda.h +++ b/include/cuda/cuda.h @@ -32,6 +32,10 @@ the proprietary CUDA toolkit. */ #define CUDA_VERSION 8000 +#ifdef __cplusplus +extern "C" { +#endif + typedef void *CUcontext; typedef int CUdevice; #if defined(__LP64__) || defined(_WIN64) @@ -191,4 +195,8 @@ CUresult cuStreamQuery (CUstream); CUresult cuStreamSynchronize (CUstream); CUresult cuStreamWaitEvent (CUstream, CUevent, unsigned); +#ifdef __cplusplus +} +#endif + #endif /* GCC_CUDA_H */