mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
MSVC++ build fixes
This commit is contained in:
parent
ee73925259
commit
97c1375837
@ -1057,7 +1057,7 @@ EventDataType Session::physMin(ChannelID id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
EventDataType min = round(Min(id));
|
||||
EventDataType min = floor(Min(id));
|
||||
m_physmin[id] = min;
|
||||
return min;
|
||||
}
|
||||
@ -1077,7 +1077,7 @@ EventDataType Session::physMax(ChannelID id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
EventDataType max = round(Max(id) + 0.5);
|
||||
EventDataType max = ceil(Max(id) + 0.5);
|
||||
m_physmax[id] = max;
|
||||
return max;
|
||||
}
|
||||
|
@ -65,13 +65,19 @@ macx {
|
||||
win32 {
|
||||
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
|
||||
RC_FILE += win_icon.rc
|
||||
LIBS += -lsetupapi -lz
|
||||
LIBS += -lsetupapi
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/../src/qtbase/src/3rdparty/zlib
|
||||
|
||||
}
|
||||
if (win32-msvc2008|win32-msvc2010|win32-msvc2012):!equals(TEMPLATE_PREFIX, "vc") {
|
||||
if (win32-msvc2008|win32-msvc2010|win32-msvc2012) {
|
||||
!equals(TEMPLATE_PREFIX, "vc") {
|
||||
LIBS += -ladvapi32
|
||||
DEFINES += BUILD_WITH_MSVC=1
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#include(..3rdparty/qextserialport/src/qextserialport.pri)
|
||||
#include(3rdparty/quazip-0.5.1/quazip/quazip.pri)
|
||||
@ -235,6 +241,7 @@ win32 {
|
||||
for(FILE,TRANS_FILES_WIN){
|
||||
system(xcopy /y $$quote($$FILE) $$quote($$DDIR))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
mac {
|
||||
|
@ -1 +1 @@
|
||||
IDI_ICON1 ICON DISCARDABLE "/icons/bob-v3.0.ico"
|
||||
IDI_ICON1 ICON DISCARDABLE "./icons/bob-v3.0.ico"
|
||||
|
Loading…
Reference in New Issue
Block a user