aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorJonathan Gray2003-07-28 07:31:14 +0000
committerJonathan Gray2003-07-28 07:31:14 +0000
commitb17e45c9bcdb63f57dd9ef60eb72ac1421b5ed0a (patch)
tree2b4beb73506581495410ad32b8a49d473580865d /sword2
parenta05c4bda0f9217723ea2541b4fd279418a8efc1a (diff)
downloadscummvm-rg350-b17e45c9bcdb63f57dd9ef60eb72ac1421b5ed0a.tar.gz
scummvm-rg350-b17e45c9bcdb63f57dd9ef60eb72ac1421b5ed0a.tar.bz2
scummvm-rg350-b17e45c9bcdb63f57dd9ef60eb72ac1421b5ed0a.zip
undefine these functions for now but in the long run we should probably rename them
svn-id: r9231
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/driver96.h14
-rw-r--r--sword2/driver/misc.cpp4
2 files changed, 12 insertions, 6 deletions
diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h
index ab0969e01c..8b5b3fdefc 100644
--- a/sword2/driver/driver96.h
+++ b/sword2/driver/driver96.h
@@ -1612,8 +1612,19 @@ extern int32 IsFxOpen(int32 id);
extern int32 SetFxVolumePan(int32 id, uint8 vol, int8 pan);
extern int32 SetFxIdVolume(int32 id, uint8 vol);
+#ifdef WIN32
+
+#undef timeGetTime
+#undef VirtualUnlock
+#undef GlobalMemoryStatus
+#undef SetFileAttributes
+#undef GetCurrentDirectory
+#undef GetVolumeInformation
+#undef _mkdir
+#undef GetModuleFileName
+
+#endif
-#ifndef WIN32
//-----------------------------------------------------------------------------
// Misc functions - from misc.cpp
//-----------------------------------------------------------------------------
@@ -1626,7 +1637,6 @@ extern void GetCurrentDirectory(uint32 max, char* path);
extern int32 GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *, DWORD *dwMaxCompLength, DWORD *dwFSFlags, uint8 *, uint32 a);
extern void _mkdir(const char *pathname);
extern void GetModuleFileName(void *module, char *destStr, uint32 maxLen);
-#endif
//-----------------------------------------------------------------------------
//Macro for calling error handler with source filename and line.
diff --git a/sword2/driver/misc.cpp b/sword2/driver/misc.cpp
index 4819be7d49..7843c3352a 100644
--- a/sword2/driver/misc.cpp
+++ b/sword2/driver/misc.cpp
@@ -21,11 +21,9 @@
#include "driver96.h"
#include "../sword2.h"
-#ifndef WIN32
uint32 timeGetTime(void) {
return g_bs2->_syst->get_msecs();
}
-#endif
void VirtualUnlock(uint8 *free_memman, uint32 total_free_memory) {
warning("stub VirtualUnlock");
@@ -54,12 +52,10 @@ int32 GetVolumeInformation(char *cdPath, char *sCDName, uint32 maxPath, uint8 *,
return 1;
}
-#ifndef WIN32
// FIXME wrap different platform specific mkdir calls and actually do something
void _mkdir(const char *pathname) {
warning("stub _mkdir %s", pathname);
}
-#endif
void GetModuleFileName(void *module, char *destStr, uint32 maxLen) {
warning("stub GetModuleFileName");