]> git.draconx.ca Git - liblbx.git/blob - src/byteorder.h
Initial commit
[liblbx.git] / src / byteorder.h
1 #ifndef BYTEORDER_H_
2 #define BYTEORDER_H_
3
4 #ifdef HAVE_CONFIG_H
5 #       include "config.h"
6 #endif
7
8 #ifdef WORDS_BIGENDIAN
9         uint16_t letohs(uint16_t);
10         uint32_t letohl(uint32_t);
11 #else
12 #       define letohs(x) (x)
13 #       define letohl(x) (x)
14 #endif
15
16 #endif