Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Windows using Visual Studio 2010
Description
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)
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;
}