The NODE_NET_SOCKET_READ and NODE_NET_SOCKET_WRITE macros are just
no-ops on Windows, but they used to be defined as taking four parameters
while being called with five arguments. Turn them into variadic macros
to squelch a compiler warning.
PR-URL: https://github.com/iojs/io.js/pull/261
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
INLINE bool NODE_NET_SOCKET_WRITE_ENABLED();
INLINE bool NODE_V8SYMBOL_ENABLED();
-#define NODE_NET_SOCKET_READ(arg0, arg1, arg2, arg3)
-#define NODE_NET_SOCKET_WRITE(arg0, arg1, arg2, arg3)
+#define NODE_NET_SOCKET_READ(...) /* no-op */
+#define NODE_NET_SOCKET_WRITE(...) /* no-op */
+
} // namespace node
#endif // SRC_NODE_WIN32_ETW_PROVIDER_H_