From f64137d2b094e4066429f3ef88d576d8ce399017 Mon Sep 17 00:00:00 2001 From: Vlad Sytchenko Date: Fri, 10 Apr 2020 22:24:33 -0400 Subject: [PATCH] Fix Windows build Change-Id: I8c46c8ee82a6e47483d4c0430b483eead3772e5b [ROCm/hip commit: f311b0062f8e58709b32fee3b5260192ef3fe235] --- projects/hip/include/hip/hcc_detail/hiprtc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/hip/include/hip/hcc_detail/hiprtc.h b/projects/hip/include/hip/hcc_detail/hiprtc.h index ec9c85716a..fecea75340 100644 --- a/projects/hip/include/hip/hcc_detail/hiprtc.h +++ b/projects/hip/include/hip/hcc_detail/hiprtc.h @@ -28,7 +28,9 @@ extern "C" { #include +#if !defined(_WIN32) #pragma GCC visibility push (default) +#endif enum hiprtcResult { HIPRTC_SUCCESS = 0, @@ -81,7 +83,9 @@ hiprtcResult hiprtcGetCode(hiprtcProgram prog, char* code); hiprtcResult hiprtcGetCodeSize(hiprtcProgram prog, size_t* codeSizeRet); +#if !defined(_WIN32) #pragma GCC visibility pop +#endif #ifdef __cplusplus }