ObjFW  Check-in [21a21f6a6b]

Overview
Comment:socket.h: Add sa_family_t typedef on Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | unix-sockets
Files: files | file ages | folders
SHA3-256: 21a21f6a6becb9080113b625b959e538d711a6130d24552ebf255cb4b098bf14
User & Date: js on 2021-04-05 17:55:11
Other Links: branch diff | manifest | tags
Context
2021-04-25
20:22
Merge trunk into branch "unix-sockets" check-in: fb40f7048d user: js tags: unix-sockets
2021-04-05
17:55
socket.h: Add sa_family_t typedef on Windows check-in: 21a21f6a6b user: js tags: unix-sockets
16:30
Add support for UNIX socket addresses check-in: 1db6618bb9 user: js tags: unix-sockets
Changes

Modified src/socket.h from [e6e5016044] to [fc728b1db0].

70
71
72
73
74
75
76




77
78
79
80
81
82
83
OF_ASSUME_NONNULL_BEGIN

#ifndef OF_WINDOWS
typedef int of_socket_t;
#else
typedef SOCKET of_socket_t;
#endif





#ifdef OF_WII
typedef u8 sa_family_t;
#endif

#ifdef OF_MORPHOS
typedef long socklen_t;







>
>
>
>







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
OF_ASSUME_NONNULL_BEGIN

#ifndef OF_WINDOWS
typedef int of_socket_t;
#else
typedef SOCKET of_socket_t;
#endif

#ifdef OF_WINDOWS
typedef short sa_family_t;
#endif

#ifdef OF_WII
typedef u8 sa_family_t;
#endif

#ifdef OF_MORPHOS
typedef long socklen_t;