You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Cliff Jansen (JIRA)" <ji...@apache.org> on 2013/08/22 21:57:51 UTC

[jira] [Resolved] (PROTON-99) Porting Issue -- pn_dtag macro does not compile with Visual Studio compiler

     [ https://issues.apache.org/jira/browse/PROTON-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cliff Jansen resolved PROTON-99.
--------------------------------

    Resolution: Fixed

fixed in PROTON-159
                
> Porting Issue -- pn_dtag macro does not compile with Visual Studio compiler
> ---------------------------------------------------------------------------
>
>                 Key: PROTON-99
>                 URL: https://issues.apache.org/jira/browse/PROTON-99
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>         Environment: Windows using Visual Studio 2010 
>            Reporter: Mary hinton
>            Assignee: Cliff Jansen
>              Labels: build
>             Fix For: 0.4
>
>         Attachments: pn_dtag.patch
>
>
> I would like to replace the pn_dtag macro with a function that will compile using either GNU or  Visual Studio compilers.
> engine.h
> Replace:
> #define pn_dtag(BYTES, SIZE) ((pn_delivery_tag_t) {(SIZE), (BYTES)}
> With:
> pn_delivery_tag_t pn_dtag(const char *bytes, size_t size);
> engine.c
> Add:
> pn_delivery_tag_t pn_dtag(const char *bytes, size_t size) 
> {
>   pn_delivery_tag_t delivt;
>   delivt.bytes = bytes;
>   delivt.size = size;
>   return delivt;
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira