summaryrefslogtreecommitdiff
path: root/deps/uv/include/uv-win.h
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2011-07-16 00:31:47 +0200
committerBert Belder <bertbelder@gmail.com>2011-07-16 00:31:47 +0200
commit1c2dd454dbf9db45001db8044d320d9b787c7237 (patch)
tree62cf9141c33ed2b4bdda9434392850090d093732 /deps/uv/include/uv-win.h
parent7f0047c2d52eb39c30ee49a6e5a9a3167ec6f54d (diff)
downloadnode-new-1c2dd454dbf9db45001db8044d320d9b787c7237.tar.gz
libuv: stop g++ from complaining about anonymous struct usage
Diffstat (limited to 'deps/uv/include/uv-win.h')
-rw-r--r--deps/uv/include/uv-win.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/deps/uv/include/uv-win.h b/deps/uv/include/uv-win.h
index e0bfa848b7..d9f65ba5d1 100644
--- a/deps/uv/include/uv-win.h
+++ b/deps/uv/include/uv-win.h
@@ -62,6 +62,13 @@ typedef struct uv_buf_t {
#define UV_SHUTDOWN_PRIVATE_FIELDS \
/* empty */
+#define UV_PRIVATE_REQ_TYPES \
+ typedef struct uv_pipe_accept_s { \
+ UV_REQ_FIELDS \
+ HANDLE pipeHandle; \
+ struct uv_pipe_accept_s* next_pending; \
+ } uv_pipe_accept_t;
+
#define uv_stream_connection_fields \
unsigned int write_reqs_pending; \
uv_shutdown_t* shutdown_req;
@@ -90,12 +97,8 @@ typedef struct uv_buf_t {
#define uv_pipe_server_fields \
char* name; \
- struct uv_pipe_accept_s { \
- UV_REQ_FIELDS \
- HANDLE pipeHandle; \
- struct uv_pipe_accept_s* next_pending; \
- } accept_reqs[4]; \
- struct uv_pipe_accept_s* pending_accepts;
+ uv_pipe_accept_t accept_reqs[4]; \
+ uv_pipe_accept_t* pending_accepts;
#define uv_pipe_connection_fields \
HANDLE handle;