win32/include/winapi changes from https://github.com/run4flat/tinycc.git
[tinycc.git] / win32 / include / winapi / psdk_inc / _socket_types.h
blob429d84ec1566cc1007771e532ecd9e42c5fc50a0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
7 #ifndef ___WSA_SOCKET_TYPES_H
8 #define ___WSA_SOCKET_TYPES_H
10 #if 1
11 typedef UINT_PTR SOCKET;
12 #else
13 typedef INT_PTR SOCKET;
14 #endif
16 #define INVALID_SOCKET (SOCKET)(~0)
17 #define SOCKET_ERROR (-1)
19 #endif /* ___WSA_SOCKET_TYPES_H */