You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xy...@apache.org on 2022/10/25 04:24:10 UTC

[pulsar-client-cpp] branch main updated: Fix macOS build (#67)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7ec2ce7  Fix macOS build (#67)
7ec2ce7 is described below

commit 7ec2ce7a7907bdbdb1c27b8ed5aa4be3077ed5f1
Author: Kai Wang <kw...@apache.org>
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
---
 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"