MSVC simplification, easier to use alternate libs

This commit is contained in:
Charles J. Cliffe
2015-10-19 23:02:50 -04:00
parent c8d04d337c
commit 6087588b3d
32 changed files with 54 additions and 1405 deletions
+19
View File
@@ -20,6 +20,25 @@
IMPLEMENT_APP(CubicSDR)
#ifdef MINGW_PATCH
FILE _iob[] = { *stdin, *stdout, *stderr };
extern "C" FILE * __cdecl __iob_func(void)
{
return _iob;
}
extern "C" int __cdecl __isnan(double x)
{
return _finite(x)?0:1;
}
extern "C" int __cdecl __isnanf(float x)
{
return _finitef(x)?0:1;
}
#endif
CubicSDR::CubicSDR() : appframe(NULL), m_glContext(NULL), frequency(0), offset(0), ppm(0), snap(1), sampleRate(DEFAULT_SAMPLE_RATE), directSamplingMode(0),
sdrThread(NULL), sdrPostThread(NULL), spectrumVisualThread(NULL), demodVisualThread(NULL), pipeSDRIQData(NULL), pipeIQVisualData(NULL), pipeAudioVisualData(NULL), t_SDR(NULL), t_PostSDR(NULL) {
+3 -1
View File
@@ -35,4 +35,6 @@ const char filePathSeparator =
#define DEFAULT_WATERFALL_LPS 30
#define CHANNELIZER_RATE_MAX 400000
#define CHANNELIZER_RATE_MAX 400000
+3 -3
View File
@@ -35,10 +35,10 @@ void initGLExtensions() {
// const GLubyte *extensions = glGetString(GL_EXTENSIONS);
// std::cout << std::endl << "Supported GL Extensions: " << std::endl << extensions << std::endl << std::endl;
#ifdef __linux__
const GLint interval = 2;
#else
#ifdef __APPLE__
const GLint interval = 1;
#else
const GLint interval = 2;
#endif
#ifdef _WIN32