From 6a6ec6e5847427834c0f4ecfb6ed5c6f99f7bda4 Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Mon, 21 Nov 2022 15:50:27 -0800 Subject: [PATCH] remove hidden pragmas These prevent building of a shared library (as described in https://github.com/NVIDIA/NVTX#other-languages), and appear to be redundant in any case. --- c/include/nvtx3/nvtxDetail/nvtxImpl.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/c/include/nvtx3/nvtxDetail/nvtxImpl.h b/c/include/nvtx3/nvtxDetail/nvtxImpl.h index 590ce90..f7e6104 100644 --- a/c/include/nvtx3/nvtxDetail/nvtxImpl.h +++ b/c/include/nvtx3/nvtxDetail/nvtxImpl.h @@ -69,10 +69,6 @@ extern "C" { #endif /* __cplusplus */ -#ifdef __GNUC__ -#pragma GCC visibility push(hidden) -#endif - /* ---- Forward declare all functions referenced in globals ---- */ NVTX_LINKONCE_FWDDECL_FUNCTION void NVTX_VERSIONED_IDENTIFIER(nvtxInitOnce)(void); @@ -429,10 +425,6 @@ NVTX_LINKONCE_DEFINE_FUNCTION void NVTX_API NVTX_VERSIONED_IDENTIFIER(nvtxEtiSet #include "nvtxInit.h" -#ifdef __GNUC__ -#pragma GCC visibility pop -#endif - #ifdef __cplusplus } /* extern "C" */ #endif /* __cplusplus */