diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/zmq.h | 5 |
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]; }; |