Differences From Artifact [f90819336c]:
- File src/socket_helpers.h — part of check-in [3cba61d694] at 2017-06-03 16:58:46 on branch trunk — Make sockets work on MorphOS + libnix (user: js, size: 2662) [annotate] [blame] [check-ins using]
To Artifact [e85ec3eda4]:
- File
src/socket_helpers.h
— part of check-in
[c9621825fc]
at
2017-06-04 18:48:03
on branch trunk
— Treat MorphOS + ixemul as a separate platform
This reduces the ifdef hell and makes much more sense, as with ixemul,
no native calls are allowed. (user: js, size: 2695) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
57 58 59 60 61 62 63 | #endif #if !defined(OF_WINDOWS) && !defined(OF_WII) # define closesocket(sock) close(sock) #endif #ifdef OF_MORPHOS | < | > | > > | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #endif #if !defined(OF_WINDOWS) && !defined(OF_WII) # define closesocket(sock) close(sock) #endif #ifdef OF_MORPHOS # define hstrerror(err) "unknown (no hstrerror)" typedef uint32_t in_addr_t; #endif #ifdef OF_MORPHOS_IXEMUL typedef uint32_t in_addr_t; #endif #ifdef OF_WII # define accept(sock, addr, addrlen) net_accept(sock, addr, addrlen) # define bind(sock, addr, addrlen) net_bind(sock, addr, addrlen) # define closesocket(sock) net_close(sock) |
︙ | ︙ |