reduced dependency from windows-specific header files

svn-id: r26034
This commit is contained in:
Nicola Mettifogo 2007-03-09 00:13:07 +00:00
parent a3c2c1f413
commit 1e985051a9
6 changed files with 16 additions and 13 deletions

View file

@ -21,6 +21,9 @@
#if defined(WIN32) && !defined(_WIN32_WCE)
#include <windows.h>
#include <mmsystem.h>
#include "common/stdafx.h"
#include "sound/mpu401.h"
#include "common/util.h"

View file

@ -33,6 +33,10 @@
#include "icons/scummvm.xpm"
#if defined(WIN32)
#include <windows.h>
#endif
#if defined(__SYMBIAN32__)
#include "SymbianOs.h"
#endif

View file

@ -29,6 +29,10 @@
DECLARE_SINGLETON(Common::ConfigManager);
#if defined(WIN32)
#include <windows.h>
#endif
#ifdef __PLAYSTATION2__
#include "backends/platform/ps2/systemps2.h"
#endif

View file

@ -94,20 +94,11 @@
#endif
#include <windows.h>
#if defined(ARRAYSIZE)
// VS2005beta2 introduces new stuff in winnt.h
#undef ARRAYSIZE
#endif
#include <io.h>
#include <fcntl.h>
#include <conio.h>
#include <mmsystem.h>
#include <winuser.h>
#include <direct.h>
#endif
#if defined(__QNXNTO__)

View file

@ -29,6 +29,11 @@
#include "gui/message.h"
#include "sound/mixer.h"
#if defined(WIN32)
#include <windows.h>
#include <direct.h>
#endif
#ifdef _WIN32_WCE
extern bool isSmartphone(void);
#endif

View file

@ -56,11 +56,9 @@ namespace Scumm {
#define IMAGE_DOS_SIGNATURE 0x5A4D /* MZ */
#define IMAGE_NT_SIGNATURE 0x00004550 /* PE00 */
#if !defined (WIN32)
#define IMAGE_SCN_CNT_CODE 0x00000020
#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x00000080
#endif
// Only IMAGE_DIRECTORY_ENTRY_RESOURCE is used:
#define IMAGE_DIRECTORY_ENTRY_EXPORT 0
@ -80,7 +78,6 @@ namespace Scumm {
#define IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR 14
// Only RT_GROUP_CURSOR and RT_GROUP_ICON are used
#if !defined (WIN32)
#define RT_CURSOR 1
#define RT_BITMAP 2
#define RT_ICON 3
@ -94,7 +91,6 @@ namespace Scumm {
#define RT_MESSAGELIST 11
#define RT_GROUP_CURSOR 12
#define RT_GROUP_ICON 14
#endif
#define RETURN_IF_BAD_POINTER(r, x) \
if (!check_offset(fi->memory, fi->total_size, fi->file->name(), &(x), sizeof(x))) \