Browse Source

windows: don't include winsock2.h

otherwise we get many errors
master
Alexander Epaneshnikov 3 years ago
parent
commit
4ca505d01e
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/compat/endian.h

+ 1
- 1
src/include/compat/endian.h View File



#ifndef ENDIAN_H_COMPAT_SHIM #ifndef ENDIAN_H_COMPAT_SHIM
#define ENDIAN_H_COMPAT_SHIM #define ENDIAN_H_COMPAT_SHIM
#pragma once


#if defined(HAVE_ENDIAN_H) #if defined(HAVE_ENDIAN_H)
# pragma GCC system_header // Silence "warning: #include_next is a GCC extension" # pragma GCC system_header // Silence "warning: #include_next is a GCC extension"
# define __PDP_ENDIAN PDP_ENDIAN # define __PDP_ENDIAN PDP_ENDIAN
#elif defined(_WIN16) || defined(_WIN32) || defined(_WIN64) #elif defined(_WIN16) || defined(_WIN32) || defined(_WIN64)
# if BYTE_ORDER == LITTLE_ENDIAN # if BYTE_ORDER == LITTLE_ENDIAN
# include <winsock2.h>


# define htobe16(x) htons(x) # define htobe16(x) htons(x)
# define htole16(x) (x) # define htole16(x) (x)

Loading…
Cancel
Save