summaryrefslogtreecommitdiff
path: root/src/a2netcompat.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/a2netcompat.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/a2netcompat.h')
-rw-r--r--src/a2netcompat.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/a2netcompat.h b/src/a2netcompat.h
index c010680a..2caa94c4 100644
--- a/src/a2netcompat.h
+++ b/src/a2netcompat.h
@@ -37,75 +37,75 @@
#include "a2io.h"
#ifdef __MINGW32__
-# ifdef HAVE_WS2TCPIP_H
-# include <ws2tcpip.h>
-# endif // HAVE_WS2TCPIP_H
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif // HAVE_WS2TCPIP_H
#endif // __MINGW32__
#ifdef __MINGW32__
-# define a2_sockopt_t char *
-# ifndef HAVE_GETADDRINFO
-# define HAVE_GETADDRINFO
-# endif // !HAVE_GETADDRINFO
-# undef HAVE_GAI_STRERROR
-# undef gai_strerror
+#define a2_sockopt_t char *
+#ifndef HAVE_GETADDRINFO
+#define HAVE_GETADDRINFO
+#endif // !HAVE_GETADDRINFO
+#undef HAVE_GAI_STRERROR
+#undef gai_strerror
#else
-# define a2_sockopt_t void *
+#define a2_sockopt_t void *
#endif // __MINGW32__
#ifdef HAVE_NETDB_H
-# include <netdb.h>
+#include <netdb.h>
#endif // HAVE_NETDB_H
#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
+#include <sys/socket.h>
#endif // HAVE_SYS_SOCKET_H
#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
+#include <netinet/in.h>
#endif // HAVE_NETINET_IN_H
#ifdef HAVE_NETINET_TCP_H
-# include <netinet/tcp.h>
+#include <netinet/tcp.h>
#endif // HAVE_NETINET_TCP_H
#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
+#include <arpa/inet.h>
#endif // HAVE_ARPA_INET_H
#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
+#include <netinet/in.h>
#endif // HAVE_NETINET_IN_H
#ifdef HAVE_SYS_UIO_H
-# include <sys/uio.h>
+#include <sys/uio.h>
#endif // HAVE_SYS_UIO_H
#ifndef HAVE_GETADDRINFO
-# include "getaddrinfo.h"
-# define HAVE_GAI_STRERROR
+#include "getaddrinfo.h"
+#define HAVE_GAI_STRERROR
#endif // HAVE_GETADDRINFO
#ifndef HAVE_GAI_STRERROR
-# include "gai_strerror.h"
+#include "gai_strerror.h"
#endif // HAVE_GAI_STRERROR
#ifdef HAVE_WINSOCK2_H
-# define sock_t SOCKET
+#define sock_t SOCKET
#else
-# define sock_t int
+#define sock_t int
#endif
#ifndef AI_ADDRCONFIG
-# define AI_ADDRCONFIG 0
+#define AI_ADDRCONFIG 0
#endif // !AI_ADDRCONFIG
#define DEFAULT_AI_FLAGS AI_ADDRCONFIG
#ifdef __MINGW32__
-# ifndef SHUT_WR
-# define SHUT_WR SD_SEND
-# endif // !SHUT_WR
+#ifndef SHUT_WR
+#define SHUT_WR SD_SEND
+#endif // !SHUT_WR
#endif // __MINGW32__
union sockaddr_union {
@@ -118,19 +118,19 @@ union sockaddr_union {
#define A2_DEFAULT_IOV_MAX 128
#if defined(IOV_MAX) && IOV_MAX < A2_DEFAULT_IOV_MAX
-# define A2_IOV_MAX IOV_MAX
+#define A2_IOV_MAX IOV_MAX
#else
-# define A2_IOV_MAX A2_DEFAULT_IOV_MAX
+#define A2_IOV_MAX A2_DEFAULT_IOV_MAX
#endif
#ifdef __MINGW32__
typedef WSABUF a2iovec;
-# define A2IOVEC_BASE buf
-# define A2IOVEC_LEN len
+#define A2IOVEC_BASE buf
+#define A2IOVEC_LEN len
#else // !__MINGW32__
typedef struct iovec a2iovec;
-# define A2IOVEC_BASE iov_base
-# define A2IOVEC_LEN iov_len
+#define A2IOVEC_BASE iov_base
+#define A2IOVEC_LEN iov_len
#endif // !__MINGW32__
#endif // D_A2NETCOMPAT_H