From 313f5d018fc74ef8d462bf945d31bc128176156d Mon Sep 17 00:00:00 2001 From: Rui Li Date: Thu, 19 May 2022 18:43:09 +0800 Subject: [PATCH] Fix PD_INFER_DECL redefine (#42731) Signed-off-by: KernelErr --- paddle/fluid/inference/api/paddle_infer_declare.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/inference/api/paddle_infer_declare.h b/paddle/fluid/inference/api/paddle_infer_declare.h index e8525f440fe..44eacc6a705 100644 --- a/paddle/fluid/inference/api/paddle_infer_declare.h +++ b/paddle/fluid/inference/api/paddle_infer_declare.h @@ -23,5 +23,7 @@ #endif // PADDLE_DLL_INFERENCE #endif // PD_INFER_DECL #else +#ifndef PD_INFER_DECL #define PD_INFER_DECL __attribute__((visibility("default"))) +#endif // PD_INFER_DECL #endif // _WIN32 -- GitLab