summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <sustrik@.(none)>2009-09-07 15:41:43 +0200
committerunknown <sustrik@.(none)>2009-09-07 15:41:43 +0200
commitf895426c1885729f4a4a20b1eb543a92915aed85 (patch)
tree25655039b193371027107c33551239caa227bcfc /include
parent87ccbb9fae0f9234f82f9a9ec6a215f5e73209d3 (diff)
initial changes for win port
Diffstat (limited to 'include')
-rw-r--r--include/zmq.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/zmq.h b/include/zmq.h
index f321fa9..a8394ed 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -25,7 +25,6 @@ extern "C" {
#endif
#include <stddef.h>
-#include <stdint.h>
#if defined MSC_VER && defined ZMQ_BUILDING_LIBZMQ
#define ZMQ_EXPORT __declspec(dllexport)
@@ -35,6 +34,8 @@ extern "C" {
// Maximal size of "Very Small Message". VSMs are passed by value
// to avoid excessive memory allocation/deallocation.
+// If VMSs larger than 255 bytes are required, type of 'vsm_size'
+// field in zmq_msg_t structure should be modified accordingly.
#define ZMQ_MAX_VSM_SIZE 30
// Message & notification types.
@@ -98,7 +99,7 @@ struct zmq_msg_t
{
void *content;
unsigned char shared;
- uint16_t vsm_size;
+ unsigned char vsm_size;
unsigned char vsm_data [ZMQ_MAX_VSM_SIZE];
};