Skip to content
Snippets Groups Projects
Commit 534ce4eb authored by Craig Tiller's avatar Craig Tiller
Browse files

Fixes

parent 2e190363
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,10 @@ ...@@ -34,8 +34,10 @@
#ifndef GRPC_CORE_IOMGR_SOCKADDR_WIN32_H #ifndef GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#define GRPC_CORE_IOMGR_SOCKADDR_WIN32_H #define GRPC_CORE_IOMGR_SOCKADDR_WIN32_H
#include <mswsock.h>
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
// must be included after the above
#include <mswsock.h>
#endif /* GRPC_CORE_IOMGR_SOCKADDR_WIN32_H */ #endif /* GRPC_CORE_IOMGR_SOCKADDR_WIN32_H */
...@@ -35,9 +35,11 @@ ...@@ -35,9 +35,11 @@
#ifdef GPR_WINSOCK_SOCKET #ifdef GPR_WINSOCK_SOCKET
#include <mswsock.h>
#include <winsock2.h> #include <winsock2.h>
// must be included after winsock2.h
#include <mswsock.h>
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/log_win32.h> #include <grpc/support/log_win32.h>
......
...@@ -64,10 +64,10 @@ typedef union lockfree_node { ...@@ -64,10 +64,10 @@ typedef union lockfree_node {
struct lockfree_node_contents contents; struct lockfree_node_contents contents;
} lockfree_node; } lockfree_node;
#define ENTRY_ALIGNMENT_BITS 3 /* make sure that entries aligned to 8-bytes */ /* make sure that entries aligned to 8-bytes */
#define INVALID_ENTRY_INDEX \ #define ENTRY_ALIGNMENT_BITS 3
((1 << 16) - 1) /* reserve this entry as invalid \ /* reserve this entry as invalid */
*/ #define INVALID_ENTRY_INDEX ((1 << 16) - 1)
struct gpr_stack_lockfree { struct gpr_stack_lockfree {
lockfree_node *entries; lockfree_node *entries;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment