Fixed compilation in Visual Studio 2008.

This commit is contained in:
LoRd_MuldeR 2011-06-21 22:07:22 +02:00
parent 63bf596ce8
commit e0131ac18b
6 changed files with 200 additions and 5 deletions

2
.gitignore vendored
View File

@ -2,6 +2,8 @@
/LameXP_*.opensdf
/LameXP_*.sdf
/LameXP_*.suo
/LameXP_*.ncb
/LameXP_*.sln.docstates
/bin
etc/Deployment/*.exe
etc/Deployment/_postproc.bat

View File

@ -66,7 +66,7 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions="&quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot;"
AdditionalDependencies="qtmaind.lib QtCored4.lib QtGuid4.lib Winmm.lib Shlwapi.lib psapi.lib"
AdditionalDependencies="qtmaind.lib QtCored4.lib QtGuid4.lib Winmm.lib Shlwapi.lib Wininet.lib psapi.lib"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(QTDIR)\lib&quot;;&quot;$(QTDIR)\plugins\imageformats&quot;"
GenerateDebugInformation="true"
@ -155,7 +155,7 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions="&quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot;"
AdditionalDependencies="qtmain.lib QtCore4.lib QtGui4.lib Winmm.lib Shlwapi.lib"
AdditionalDependencies="qtmain.lib QtCore4.lib QtGui4.lib Winmm.lib Shlwapi.lib Wininet.lib"
ShowProgress="2"
Version=""
LinkIncremental="1"
@ -253,7 +253,7 @@
<Tool
Name="VCLinkerTool"
AdditionalOptions="&quot;/MANIFESTDEPENDENCY:type=&apos;win32&apos; name=&apos;Microsoft.Windows.Common-Controls&apos; version=&apos;6.0.0.0&apos; publicKeyToken=&apos;6595b64144ccf1df&apos; language=&apos;*&apos; processorArchitecture=&apos;*&apos;&quot;"
AdditionalDependencies="qtmain.lib QtCore.lib QtGui.lib QtSvg.lib qsvg.lib qico.lib Winmm.lib imm32.lib ws2_32.lib Shlwapi.lib"
AdditionalDependencies="qtmain.lib QtCore.lib QtGui.lib QtSvg.lib qsvg.lib qico.lib Winmm.lib imm32.lib ws2_32.lib Shlwapi.lib Wininet.lib"
ShowProgress="2"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(SolutionDir)\etc\Prerequisites\qt4_static\lib&quot;;&quot;$(SolutionDir)\etc\Prerequisites\qt4_static\plugins\imageformats&quot;"
@ -320,6 +320,10 @@
RelativePath=".\src\Decoder_ALAC.cpp"
>
</File>
<File
RelativePath=".\src\Decoder_Avisynth.cpp"
>
</File>
<File
RelativePath=".\src\Decoder_FLAC.cpp"
>
@ -368,6 +372,10 @@
RelativePath=".\src\Dialog_About.cpp"
>
</File>
<File
RelativePath=".\src\Dialog_CueImport.cpp"
>
</File>
<File
RelativePath=".\src\Dialog_DropBox.cpp"
>
@ -408,6 +416,10 @@
RelativePath=".\src\Encoder_Abstract.cpp"
>
</File>
<File
RelativePath=".\src\Encoder_AC3.cpp"
>
</File>
<File
RelativePath=".\src\Encoder_FLAC.cpp"
>
@ -468,6 +480,10 @@
RelativePath=".\src\Model_AudioFile.cpp"
>
</File>
<File
RelativePath=".\src\Model_CueSheet.cpp"
>
</File>
<File
RelativePath=".\src\Model_FileList.cpp"
>
@ -500,6 +516,10 @@
RelativePath=".\src\ShellIntegration.cpp"
>
</File>
<File
RelativePath=".\src\Thread_CueSplitter.cpp"
>
</File>
<File
RelativePath=".\src\Thread_DiskObserver.cpp"
>
@ -592,6 +612,10 @@
RelativePath=".\src\Decoder_ALAC.h"
>
</File>
<File
RelativePath=".\src\Decoder_Avisynth.h"
>
</File>
<File
RelativePath=".\src\Decoder_FLAC.h"
>
@ -670,6 +694,40 @@
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Dialog_CueImport.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Static|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Dialog_DropBox.h"
>
@ -1010,6 +1068,20 @@
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Encoder_AC3.h"
>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Encoder_FLAC.h"
>
@ -1246,6 +1318,40 @@
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Model_CueSheet.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Static|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Model_FileList.h"
>
@ -1436,6 +1542,40 @@
RelativePath=".\src\Targetver.h"
>
</File>
<File
RelativePath=".\src\Thread_CueSplitter.h"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Static|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
CommandLine="&quot;$(QTDIR)\bin\moc.exe&quot; -o &quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\MOC_$(SafeInputName).cpp&quot;"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\Thread_DiskObserver.h"
>
@ -1692,6 +1832,10 @@
RelativePath=".\tmp\MOC_Dialog_About.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Dialog_CueImport.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Dialog_DropBox.cpp"
>
@ -1732,6 +1876,10 @@
RelativePath=".\tmp\MOC_Encoder_Abstract.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Encoder_AC3.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Encoder_FLAC.cpp"
>
@ -1756,6 +1904,10 @@
RelativePath=".\tmp\MOC_Model_AudioFile.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Model_CueSheet.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Model_FileList.cpp"
>
@ -1776,6 +1928,10 @@
RelativePath=".\tmp\MOC_ShellIntegration.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Thread_CueSplitter.cpp"
>
</File>
<File
RelativePath=".\tmp\MOC_Thread_DiskObserver.cpp"
>
@ -2051,6 +2207,40 @@
<Filter
Name="Dialogs"
>
<File
RelativePath=".\gui\CueSheetImport.ui"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="UIC &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
CommandLine="&quot;$(QTDIR)\bin\uic.exe&quot; -o &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="UIC &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
CommandLine="&quot;$(QTDIR)\bin\uic.exe&quot; -o &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
/>
</FileConfiguration>
<FileConfiguration
Name="Release_Static|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="UIC &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
CommandLine="&quot;$(QTDIR)\bin\uic.exe&quot; -o &quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot; &quot;$(InputPath)&quot;"
Outputs="&quot;$(SolutionDir)tmp\UIC_$(SafeInputName).h&quot;"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\gui\DropBox.ui"
>

View File

@ -38,6 +38,7 @@
#include <QLabel>
#include <MMSystem.h>
#include <math.h>
//Helper macros
#define LINK(URL) QString("<a href=\"%1\">%2</a>").arg(URL).arg(URL)

View File

@ -52,6 +52,7 @@
#include <io.h>
#include <fcntl.h>
#include <intrin.h>
#include <math.h>
//COM includes
#include <Objbase.h>

View File

@ -28,8 +28,7 @@
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <WinSDKVer.h>
//#include <WinSDKVer.h>
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.

View File

@ -36,6 +36,8 @@
#include <QDebug>
#include <math.h>
#include <float.h>
#include <limits>
////////////////////////////////////////////////////////////
// Constructor