commit | af7696425e02387944b7b189fbe3a2efb7768cd0 | [log] [tgz] |
---|---|---|
author | Martin Jesper Low Madsen <martin@martinjlowm.dk> | Tue Apr 28 22:33:43 2015 +0200 |
committer | Martin Jesper Low Madsen <martin@martinjlowm.dk> | Tue Apr 28 22:33:43 2015 +0200 |
tree | 286ad93aa24cde8c750cb025341bf4d81dec1310 | |
parent | 5817a79e56513eb696af8689cbf29e86bd808d0b [diff] |
Define missing 16 bit endian swap macro and fix some endian.h inclusion.
diff --git a/include/grgsm/endian.h b/include/grgsm/endian.h index c176a49..231503d 100644 --- a/include/grgsm/endian.h +++ b/include/grgsm/endian.h
@@ -9,6 +9,7 @@ # define htobe16(x) OSSwapHostToBigInt16(x) # define htobe32(x) OSSwapHostToBigInt32(x) +# define be16toh(x) OSSwapBigToHostInt16(x) # define be32toh(x) OSSwapBigToHostInt32(x) #endif