Patch for Windows / OSX

This commit is contained in:
Charles J. Cliffe 2015-02-05 19:30:06 -05:00
parent a2c6e0bf91
commit 9cf8799a58
2 changed files with 16 additions and 2 deletions

View File

@ -3,6 +3,22 @@
#define CUBICSDR_VERSION "v0.01a"
#define CUBICSDR_TITLE "CubicSDR " CUBICSDR_VERSION " by Charles J. Cliffe (@ccliffe)"
#ifndef __BYTE_ORDER
#ifdef _WIN32
#define ATTRIBUTE
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __PDP_ENDIAN 3412
#define __BYTE_ORDER __LITTLE_ENDIAN
#else
#ifdef __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#endif
#endif
const char filePathSeparator =
#ifdef _WIN32
'\\';

View File

@ -2,8 +2,6 @@
#include "CubicSDRDefs.h"
#include "CubicSDR.h"
#include <complex.h>
#include <endian.h>
#include <vector>
#include <deque>