0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Fix inconsistently using #if or #ifdef instead of #if defined

This commit is contained in:
Matt Arsenault 2012-12-30 17:58:27 -05:00 committed by Matt Arsenault
parent 1eee9ce035
commit 73c370dd17
2 changed files with 3 additions and 3 deletions

View File

@ -73,11 +73,11 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_)
void zmq::unblock_socket (fd_t s_)
{
#ifdef ZMQ_HAVE_WINDOWS
#if defined ZMQ_HAVE_WINDOWS
u_long nonblock = 1;
int rc = ioctlsocket (s_, FIONBIO, &nonblock);
wsa_assert (rc != SOCKET_ERROR);
#elif ZMQ_HAVE_OPENVMS
#elif defined ZMQ_HAVE_OPENVMS
int nonblock = 1;
int rc = ioctl (s_, FIONBIO, &nonblock);
errno_assert (rc != -1);

View File

@ -56,7 +56,7 @@
// XSI vector I/O
#if ZMQ_HAVE_UIO
#if defined ZMQ_HAVE_UIO
#include <sys/uio.h>
#else
struct iovec {