diff options
author | frsyuki <frsyuki@users.sourceforge.jp> | 2009-12-10 06:19:53 +0900 |
---|---|---|
committer | frsyuki <frsyuki@users.sourceforge.jp> | 2009-12-10 06:19:53 +0900 |
commit | 7ce866ad7c2884f0b01ee77d99d2f9e01217fcdf (patch) | |
tree | 653062053c283a41d4999437eda6fa29e91471ef /c/vrefbuffer.h | |
parent | 0ae1965f6b492efb71f7457ba1dec48ae6110399 (diff) | |
download | msgpack-python-7ce866ad7c2884f0b01ee77d99d2f9e01217fcdf.tar.gz |
msgpack template: architecture specific endian conversion
Diffstat (limited to 'c/vrefbuffer.h')
-rw-r--r-- | c/vrefbuffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c/vrefbuffer.h b/c/vrefbuffer.h index baa7c03..063075f 100644 --- a/c/vrefbuffer.h +++ b/c/vrefbuffer.h @@ -19,7 +19,16 @@ #define MSGPACK_VREFBUFFER_H__ #include "msgpack/zone.h" + +#ifndef _WIN32 #include <sys/uio.h> +#else +struct iovec { + void *iov_base; + size_t iov_len; +}; +#endif + #ifdef __cplusplus extern "C" { |