diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-02-08 15:11:57 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-02-12 10:53:54 +0100 |
commit | f126f86da5acf088f24e97ecb32f9ba5a1789aa4 (patch) | |
tree | b81704d6048117cbe15a398a3f6f5d974d143d14 /lib/src/common.h | |
parent | 3447d02974947d10440e4aa5627318c29be95c01 (diff) |
[HICN-44] Remove warnings libhicn (lib) on windows
Change-Id: I637e9c1e05de8a9e6743ea729b62d3eedd6ca54b
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'lib/src/common.h')
-rw-r--r-- | lib/src/common.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lib/src/common.h b/lib/src/common.h index 57b9078ff..e67762301 100644 --- a/lib/src/common.h +++ b/lib/src/common.h @@ -80,24 +80,25 @@ typedef uint8_t u8; #define __ORDER_BIG_ENDIAN__ 0x44434241UL #define __BYTE_ORDER__ ('ABCD') - /* Windows compatibility headers*/
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include <winsock2.h>
-#include <ws2ipdef.h>
-#include <Ws2tcpip.h>
+ /* Windows compatibility headers*/ +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#include <winsock2.h> +#include <ws2ipdef.h> +#include <Ws2tcpip.h> #include <In6addr.h> +#define strdup _strdup #define __attribute__(A) -#ifndef IOVEC
-#define IOVEC
-#define UIO_MAXIOV 16
-#define IOV_MAX UIO_MAXIOV
-struct iovec {
- void* iov_base;
- size_t iov_len;
-};
+#ifndef IOVEC +#define IOVEC +#define UIO_MAXIOV 16 +#define IOV_MAX UIO_MAXIOV +struct iovec { + void* iov_base; + size_t iov_len; +}; #endif #endif |