Rest of the MSVC++2010 patches

This commit is contained in:
Mark Watkins 2011-12-18 01:12:35 +10:00
parent 25f1a3ce5a
commit aa931a99ff
5 changed files with 14 additions and 9 deletions

View File

@ -9,6 +9,7 @@
#include <QDebug>
#include <SleepLib/profiles.h>
#include "gLineChart.h"
#include "glcommon.h"
#define EXTRA_ASSERTS 1
gLineChart::gLineChart(ChannelID code,QColor col,bool square_plot, bool disable_accel)

View File

@ -5,8 +5,12 @@
*/
#include <cmath>
#include "calcs.h"
#include "profiles.h"
extern double round(double number);
bool SearchApnea(Session *session, qint64 time, qint64 dist=15000)
{
if (session->SearchEvent(CPAP_Obstructive,time,dist)) return true;

View File

@ -1470,9 +1470,9 @@ bool PRS1Loader::OpenWaveforms(SessionID sid, QString filename)
lasttimestamp=start;
duration=0;
int corrupt=0;
char waveform[num_signals][500000];
int wlength[num_signals];
qint64 wdur[num_signals];
char waveform[2][500000];
int wlength[2];
qint64 wdur[2];
//EventList *evl[num_signals];
for (int i=0;i<num_signals;i++) {
wlength[i]=0;

View File

@ -11,7 +11,7 @@
#include <QString>
#include <QObject>
//#include <tr1/random>
//#include <sys/time.h>
#include <time.h>
#include "machine.h"
#include "profiles.h"

View File

@ -96,12 +96,12 @@ win32 {
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
LIBS += -lsetupapi
if (win32-msvc2008|win32-msvc2010):equals(TEMPLATE_PREFIX, "vc") {
LIBS += -ladvapi32
DEFINES += BUILD_WITH_MSVC
}
}
}
if (win32-msvc2008|win32-msvc2010):!equals(TEMPLATE_PREFIX, "vc") {
LIBS += -ladvapi32
DEFINES += BUILD_WITH_MSVC=1
}
HEADERS += \
SleepLib/machine.h \
SleepLib/machine_loader.h \