Merge pull request #5 from dholm/feature/osx-support
endian: MacOS X support for endian conversion macros
This commit is contained in:
commit
bb69c799d5
|
@ -0,0 +1,15 @@
|
||||||
|
#ifndef GSM_ENDIAN_H
|
||||||
|
#define GSM_ENDIAN_H
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
|
# include <endian.h>
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
# include <libkern/OSByteOrder.h>
|
||||||
|
|
||||||
|
# define htobe16(x) OSSwapHostToBigInt16(x)
|
||||||
|
# define htobe32(x) OSSwapHostToBigInt32(x)
|
||||||
|
|
||||||
|
# define be32toh(x) OSSwapBigToHostInt32(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* GSM_ENDIAN_H */
|
|
@ -25,6 +25,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
|
#include <gsm/endian.h>
|
||||||
#include <gsm/gsmtap.h>
|
#include <gsm/gsmtap.h>
|
||||||
#include "get_bcch_or_ccch_bursts_impl.h"
|
#include "get_bcch_or_ccch_bursts_impl.h"
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include "universal_ctrl_chans_demapper_impl.h"
|
#include "universal_ctrl_chans_demapper_impl.h"
|
||||||
|
#include <gsm/endian.h>
|
||||||
#include <gsm/gsmtap.h>
|
#include <gsm/gsmtap.h>
|
||||||
|
|
||||||
namespace gr {
|
namespace gr {
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
|
#include <gsm/endian.h>
|
||||||
|
|
||||||
//files included for debuging
|
//files included for debuging
|
||||||
//#include "plotting/plotting.hpp"
|
//#include "plotting/plotting.hpp"
|
||||||
|
|
Loading…
Reference in New Issue