amiga_imgv
view 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 |
line source
1 #ifndef ENDIAN_H_
2 #define ENDIAN_H_
4 #if defined(__unix__) || defined(__APPLE__)
5 #include <arpa/inet.h>
6 #elif defined(WIN32)
7 #include <winsock2.h>
8 #else
9 #define NO_INET
10 #include "inttypes.h"
12 extern uint16_t (*ntohs)(uint16_t);
13 extern uint16_t (*htons)(uint16_t);
14 extern uint32_t (*ntohl)(uint32_t);
15 extern uint32_t (*htonl)(uint32_t);
16 #endif
18 int bigendian(void);
20 #endif /* ENDIAN_H_ */