You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2013/02/21 16:57:15 UTC

svn commit: r1448695 - /qpid/proton/trunk/proton-c/include/proton/engine.h

Author: kgiusti
Date: Thu Feb 21 15:57:15 2013
New Revision: 1448695

URL: http://svn.apache.org/r1448695
Log:
PROTON-245: make swig skip pn_dtag for compatibility with older versions of swig

Modified:
    qpid/proton/trunk/proton-c/include/proton/engine.h

Modified: qpid/proton/trunk/proton-c/include/proton/engine.h
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/include/proton/engine.h?rev=1448695&r1=1448694&r2=1448695&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/include/proton/engine.h (original)
+++ qpid/proton/trunk/proton-c/include/proton/engine.h Thu Feb 21 15:57:15 2013
@@ -72,10 +72,12 @@ typedef struct pn_delivery_tag_t {
   const char *bytes;
 } pn_delivery_tag_t;
 
+#ifndef SWIG  // older versions of SWIG choke on this:
 static inline pn_delivery_tag_t pn_dtag(const char *bytes, size_t size) {
   pn_delivery_tag_t dtag = {size, bytes};
   return dtag;
 }
+#endif
 
 typedef int pn_state_t;     /**< encodes the state of an endpoint */
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org