aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bs2.dsp470
-rw-r--r--common/scummsys.h3
-rw-r--r--common/stdafx.h4
-rw-r--r--gui/PopUpWidget.cpp5
-rw-r--r--gui/newgui.cpp6
-rw-r--r--gui/widget.cpp6
-rw-r--r--scumm.dsp2
-rw-r--r--scumm/dialogs.cpp5
-rw-r--r--scumm/gfx.cpp5
-rw-r--r--scumm/scummvm.cpp5
-rw-r--r--scummvm.dsp2
-rw-r--r--scummvm.dsw15
-rw-r--r--sky/compact.cpp13
-rw-r--r--sound/audiostream.cpp5
-rw-r--r--sound/rate.cpp6
-rw-r--r--sword2/driver/palette.cpp2
-rw-r--r--sword2/tony_gsdk.cpp4
17 files changed, 492 insertions, 66 deletions
diff --git a/bs2.dsp b/bs2.dsp
new file mode 100644
index 0000000000..d4f18caf6a
--- /dev/null
+++ b/bs2.dsp
@@ -0,0 +1,470 @@
+# Microsoft Developer Studio Project File - Name="bs2" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Static Library" 0x0104
+
+CFG=bs2 - Win32 mad mp3 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "bs2.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "bs2.mak" CFG="bs2 - Win32 mad mp3 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "bs2 - Win32 Release" (based on "Win32 (x86) Static Library")
+!MESSAGE "bs2 - Win32 Debug" (based on "Win32 (x86) Static Library")
+!MESSAGE "bs2 - Win32 mad mp3 Debug" (based on "Win32 (x86) Static Library")
+!MESSAGE "bs2 - Win32 mad mp3 Release" (based on "Win32 (x86) Static Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "bs2 - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "bs2___Release"
+# PROP Intermediate_Dir "bs2___Release"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
+# ADD CPP /nologo /G6 /MT /W3 /WX /GR /GX /O2 /I "." /I "common" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /YX /FD /c
+# ADD BASE RSC /l 0x415 /d "NDEBUG"
+# ADD RSC /l 0x415 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ELSEIF "$(CFG)" == "bs2 - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "bs2___Win32_Debug"
+# PROP BASE Intermediate_Dir "bs2___Win32_Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "bs2___Debug"
+# PROP Intermediate_Dir "bs2___Debug"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /WX /Gm /GR /GX /ZI /Od /I "." /I "common" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "BYPASS_COPY_PROT" /D "USE_ADLIB" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x415 /d "_DEBUG"
+# ADD RSC /l 0x415 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ELSEIF "$(CFG)" == "bs2 - Win32 mad mp3 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "bs2___Win32_mad mp3_Debug"
+# PROP BASE Intermediate_Dir "bs2___Win32_mad mp3_Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "bs2___mad_mp3_Debug"
+# PROP Intermediate_Dir "bs2___mad_mp3_Debug"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "common" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "BYPASS_COPY_PROT" /D "USE_ADLIB" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /WX /Gm /vmg /GR /GX /ZI /Od /I "." /I "common" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x415 /d "_DEBUG"
+# ADD RSC /l 0x415 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ELSEIF "$(CFG)" == "bs2 - Win32 mad mp3 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "bs2___Win32_mad mp3_Release"
+# PROP BASE Intermediate_Dir "bs2___Win32_mad mp3_Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "bs2___mad_mp3_Release"
+# PROP Intermediate_Dir "bs2___mad_mp3_Release"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /I "." /I "common" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /YX /FD /c
+# ADD CPP /nologo /G6 /MT /W3 /WX /GR /GX /O2 /I "." /I "common" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /YX /FD /c
+# ADD BASE RSC /l 0x415 /d "NDEBUG"
+# ADD RSC /l 0x415 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo
+
+!ENDIF
+
+# Begin Target
+
+# Name "bs2 - Win32 Release"
+# Name "bs2 - Win32 Debug"
+# Name "bs2 - Win32 mad mp3 Debug"
+# Name "bs2 - Win32 mad mp3 Release"
+# Begin Group "Source Files"
+
+# PROP Default_Filter ""
+# Begin Group "driver"
+
+# PROP Default_Filter ""
+# Begin Source File
+
+SOURCE=.\bs2\driver\_console.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\_console.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\_mouse.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\_mouse.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\d_draw.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\d_draw.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\d_sound.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\d_sound.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\ddutil.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\driver96.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\keyboard.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\keyboard.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\language.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\menu.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\menu.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\misc.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\mouse.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\palette.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\palette.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\rdwin.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\rdwin.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\render.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\render.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\driver\sprite.cpp
+# End Source File
+# End Group
+# Begin Source File
+
+SOURCE=.\bs2\anims.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\anims.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\build_display.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\build_display.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\console.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\console.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\controls.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\controls.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\credits.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\debug.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\debug.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\defs.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\events.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\events.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\function.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\function.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\header.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\icons.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\icons.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\interpreter.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\interpreter.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\layers.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\layers.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\logic.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\logic.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\maketext.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\maketext.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\mem_view.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\mem_view.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\memory.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\memory.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\mouse.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\mouse.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\object.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\protocol.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\protocol.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\resman.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\resman.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\router.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\router.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\save_rest.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\save_rest.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\scroll.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\scroll.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sound.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sound.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\speech.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\speech.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\startup.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\startup.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sword2.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sword2.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sync.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\sync.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\tony_gsdk.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\tony_gsdk.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\walker.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\bs2\walker.h
+# End Source File
+# End Group
+# End Target
+# End Project
diff --git a/common/scummsys.h b/common/scummsys.h
index 3e630a3fd6..5831275502 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -36,9 +36,6 @@
#if defined(_MSC_VER)
- //#pragma warning (disable: 4244)
- //#pragma warning (disable: 4101)
-
#define scumm_stricmp stricmp
#define scumm_strnicmp strnicmp
#define snprintf _snprintf
diff --git a/common/stdafx.h b/common/stdafx.h
index f1293440aa..a2f011393b 100644
--- a/common/stdafx.h
+++ b/common/stdafx.h
@@ -35,6 +35,10 @@
#elif defined(WIN32)
+#pragma once
+#pragma warning( disable : 4068 ) // turn off "unknown pragma" warning
+#pragma warning( disable : 4244 ) // turn off "conversion type" warning
+#pragma warning( disable : 4390 ) // turn oof "empty statement" warning for BS2 code
#if !defined(_WIN32_WCE)
diff --git a/gui/PopUpWidget.cpp b/gui/PopUpWidget.cpp
index 217af0cad9..dfd168bd47 100644
--- a/gui/PopUpWidget.cpp
+++ b/gui/PopUpWidget.cpp
@@ -24,11 +24,6 @@
#include "newgui.h"
#include "common/engine.h"
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
#define UP_DOWN_BOX_HEIGHT 10
// Little up/down arrow
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index a67c1f37ee..27aae30d22 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -27,12 +27,6 @@
# include "palm.h"
#endif
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
-
/*
* TODO list
* - get a nicer font which contains diacrits (ŠšŸ§Žˆ etc.)
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 9160afe78f..f259400d78 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -23,12 +23,6 @@
#include "dialog.h"
#include "newgui.h"
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
-
Widget::Widget (Dialog *boss, int x, int y, int w, int h)
: _type(0), _boss(boss), _x(x), _y(y), _w(w), _h(h),
_id(0), _flags(0), _hasFocus(false) {
diff --git a/scumm.dsp b/scumm.dsp
index fefcc63150..baf372ef82 100644
--- a/scumm.dsp
+++ b/scumm.dsp
@@ -89,7 +89,7 @@ LIB32=link.exe -lib
# PROP Intermediate_Dir "scumm___mad_mp3_Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "common" /I "scumm" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "BYPASS_COPY_PROT" /D "USE_ADLIB" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W3 /WX /Gm /GR /GX /ZI /Od /I "." /I "common" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /WX /Gm /vmg /GR /GX /ZI /Od /I "." /I "common" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /YX /FD /GZ /c
# ADD BASE RSC /l 0x415 /d "_DEBUG"
# ADD RSC /l 0x415 /d "_DEBUG"
BSC32=bscmake.exe
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp
index ad460f8051..ba2b72d258 100644
--- a/scumm/dialogs.cpp
+++ b/scumm/dialogs.cpp
@@ -36,11 +36,6 @@
#include "gui/ListWidget.h"
#include "common/config-file.h"
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
#ifdef _WIN32_WCE
#include "gapi_keys.h"
extern bool _get_key_mapping;
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index ed2c16305a..6f503a2677 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -28,11 +28,6 @@
#include "usage_bits.h"
#include "util.h"
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
enum {
kScrolltime = 500, // ms scrolling is supposed to take
kPictureDelay = 20
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 270300d27b..faef46e4fd 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -52,11 +52,6 @@
#include <sys/stat.h>
#endif
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
#ifdef _WIN32_WCE
extern bool isSmartphone(void);
#endif
diff --git a/scummvm.dsp b/scummvm.dsp
index 40a78ff6a7..0dc50bfa0a 100644
--- a/scummvm.dsp
+++ b/scummvm.dsp
@@ -98,7 +98,7 @@ LINK32=link.exe
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /I "./sound" /I "./" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "ALLOW_GDI" /D "BYPASS_COPY_PROT" /D "USE_ADLIB" /D "USE_MAD" /Yu"stdafx.h" /FD /GZ /c
# SUBTRACT BASE CPP /Fr
-# ADD CPP /nologo /MTd /W3 /WX /Gm /GR /GX /ZI /Od /I "." /I "sound" /I "common" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "ALLOW_GDI" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /D "DISABLE_SWORD2" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /WX /Gm /GR /GX /ZI /Od /I "." /I "sound" /I "common" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "ALLOW_GDI" /D "USE_ADLIB" /D "BYPASS_COPY_PROT" /D "USE_MAD" /YX /FD /GZ /c
# SUBTRACT CPP /Fr
# ADD BASE RSC /l 0x41d /d "_DEBUG"
# ADD RSC /l 0x41d /d "_DEBUG"
diff --git a/scummvm.dsw b/scummvm.dsw
index 3307e85932..34d9c7b3ef 100644
--- a/scummvm.dsw
+++ b/scummvm.dsw
@@ -3,6 +3,18 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
+Project: "bs2"=.\bs2.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
Project: "scumm"=.\scumm.dsp - Package Owner=<4>
Package=<5>
@@ -32,6 +44,9 @@ Package=<4>
Begin Project Dependency
Project_Dep_Name sky
End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name bs2
+ End Project Dependency
}}}
###############################################################################
diff --git a/sky/compact.cpp b/sky/compact.cpp
index b50005813e..981e722d02 100644
--- a/sky/compact.cpp
+++ b/sky/compact.cpp
@@ -20,15 +20,7 @@
*/
#include "stdafx.h"
-#ifdef _MSC_VER
-// disable warning "truncation of constant value". Some signed
-// fields of the structs are saved as unsigned in the .h files
-#pragma warning(disable : 4305)
-#pragma warning(disable : 4309)
-#endif
-
#include "sky/compact.h"
-
#include "sky/compacts/0compact.h"
#include "sky/compacts/1compact.h"
#include "sky/compacts/29comp.h"
@@ -44,11 +36,6 @@
#include "sky/compacts/lincmenu.h"
#include "sky/compacts/z_compac.h"
-#ifdef _MSC_VER
-#pragma warning(default : 4305)
-#pragma warning(default : 4309)
-#endif
-
#define COMPACT_SIZE (sizeof(compactOffsets)/sizeof(uint32))
#define EXTCOMPACT_SIZE (sizeof(extCompactOffsets)/sizeof(uint32))
#define MEGASET_SIZE (sizeof(megaSetOffsets)/sizeof(uint32))
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index c6f3ae2524..7ed8ff2437 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -26,11 +26,6 @@
#include "common/file.h"
#include "common/util.h"
-#ifdef _MSC_VER
-// Disable "unknown pragma" warning in MSVC 6
-#pragma warning(disable : 4068)
-#endif
-
template<bool is16Bit, bool isUnsigned>
static inline int16 readSample(const byte *ptr) {
uint16 sample = is16Bit ? READ_BE_UINT16(ptr) : (*ptr << 8);
diff --git a/sound/rate.cpp b/sound/rate.cpp
index 9b79e824ba..23752dcbb8 100644
--- a/sound/rate.cpp
+++ b/sound/rate.cpp
@@ -176,12 +176,6 @@ the_end:
return (ST_SUCCESS);
}
-
-#ifndef _MSC_VER
-#pragma mark -
-#endif
-
-
LinearRateConverter::LinearRateConverter(st_rate_t inrate, st_rate_t outrate) {
st_rate_start(&effp, inrate, outrate);
}
diff --git a/sword2/driver/palette.cpp b/sword2/driver/palette.cpp
index dbc039720d..f832a5481e 100644
--- a/sword2/driver/palette.cpp
+++ b/sword2/driver/palette.cpp
@@ -146,6 +146,7 @@
#define WIN32_LEAN_AND_MEAN
+#include "stdafx.h"
//#include <windows.h>
//#include <windowsx.h>
#include <stdio.h>
@@ -156,7 +157,6 @@
#include "common/engine.h"
#include "d_draw.h"
#include "driver96.h"
-#include "stdafx.h"
#include "../sword2.h"
#define PALTABLESIZE 64*64*64
diff --git a/sword2/tony_gsdk.cpp b/sword2/tony_gsdk.cpp
index d3d2aea386..85fd1f653a 100644
--- a/sword2/tony_gsdk.cpp
+++ b/sword2/tony_gsdk.cpp
@@ -33,10 +33,6 @@
#include <stdio.h>
#include <stdlib.h>
-#ifndef _MSC_VER
-#include <unistd.h>
-#endif
-
#include "stdafx.h"
//#include "src\driver96.h"
#include "debug.h"