amiga_imgv
annotate src/endian.h @ 11:3d9aaefb8ba6
interlace mode
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 30 Oct 2017 15:24:23 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@7 | 1 #ifndef ENDIAN_H_ |
nuclear@7 | 2 #define ENDIAN_H_ |
nuclear@7 | 3 |
nuclear@7 | 4 #if defined(__unix__) || defined(__APPLE__) |
nuclear@7 | 5 #include <arpa/inet.h> |
nuclear@7 | 6 #elif defined(WIN32) |
nuclear@7 | 7 #include <winsock2.h> |
nuclear@7 | 8 #else |
nuclear@7 | 9 #define NO_INET |
nuclear@7 | 10 #include "inttypes.h" |
nuclear@7 | 11 |
nuclear@7 | 12 extern uint16_t (*ntohs)(uint16_t); |
nuclear@7 | 13 extern uint16_t (*htons)(uint16_t); |
nuclear@7 | 14 extern uint32_t (*ntohl)(uint32_t); |
nuclear@7 | 15 extern uint32_t (*htonl)(uint32_t); |
nuclear@7 | 16 #endif |
nuclear@7 | 17 |
nuclear@7 | 18 int bigendian(void); |
nuclear@7 | 19 |
nuclear@7 | 20 #endif /* ENDIAN_H_ */ |