This is an automated email from the ASF dual-hosted git repository.

xyz pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git

commit edbed81f80369fbc8960f7443c6ed31be3315f40
Author: Kai Wang <[email protected]>
AuthorDate: Tue Oct 25 12:24:05 2022 +0800

    Fix macOS build (#67)
    
    ### Motivation
    
    In macOS, the value type of STL container cannot be forward declared
    
    (cherry picked from commit 7ec2ce7a7907bdbdb1c27b8ed5aa4be3077ed5f1)
---
 lib/ProducerImpl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ProducerImpl.h b/lib/ProducerImpl.h
index 51bf1bb..cbf99ec 100644
--- a/lib/ProducerImpl.h
+++ b/lib/ProducerImpl.h
@@ -23,8 +23,8 @@
 
 #include "Future.h"
 #include "HandlerBase.h"
-// In MSVC, the value type of a STL container cannot be forward declared
-#if defined(_MSC_VER)
+// In MSVC and macOS, the value type of STL container cannot be forward 
declared
+#if defined(_MSC_VER) || defined(__APPLE__)
 #include "OpSendMsg.h"
 #endif
 #include "PendingFailures.h"

Reply via email to