Psyllid  v1.12.4
Project 8 Data Acquisisition Software
byte_swap.hh
Go to the documentation of this file.
1 /*
2  * byte_swap.hh
3  *
4  * Created on: Jan 29, 2016
5  * Author: nsoblath
6  */
7 
8 #ifndef UTILITY_BYTE_SWAP_HH_
9 #define UTILITY_BYTE_SWAP_HH_
10 
11 #ifdef __APPLE__
12 #include <machine/endian.h>
13 // this is the only function currently used in psyllid; more could be added as necessary
14 #define be64toh(x) ntohll(x)
15 #else
16 #include <endian.h>
17 #endif
18 
19 #endif /* UTILITY_BYTE_SWAP_HH_ */