amiga_imgv

view src/endian.h @ 12:20c7238c60be

img2ham unfinished
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 20 Nov 2017 08:36:16 +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_ */