compile on osx

This commit is contained in:
Bastian Bloessl
2013-10-18 13:44:38 +02:00
parent eb5a67cc86
commit ab0453d081
3 changed files with 9 additions and 3 deletions
+5
View File
@@ -21,7 +21,12 @@
#include "utils.h"
#if defined(__APPLE__)
#include <architecture/byte_order.h>
#define htole16(x) OSSwapHostToLittleInt16(x)
#else
#include <endian.h>
#endif
#include <boost/crc.hpp>
#include <iostream>