aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorKostas Nakos2007-10-28 19:14:12 +0000
committerKostas Nakos2007-10-28 19:14:12 +0000
commit1fcbeda5fe8e7cda4397f27917aa5b5feb75f09a (patch)
tree175e73e6bc4d3c2db7b3b76137b43e56c8869d42 /backends
parent0c532c28f6e86e1d7d8eb479da1e9b90f3983bb2 (diff)
downloadscummvm-rg350-1fcbeda5fe8e7cda4397f27917aa5b5feb75f09a.tar.gz
scummvm-rg350-1fcbeda5fe8e7cda4397f27917aa5b5feb75f09a.tar.bz2
scummvm-rg350-1fcbeda5fe8e7cda4397f27917aa5b5feb75f09a.zip
various assorted things required by the new compiler and codebase changes
svn-id: r29310
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/wince/CELauncherDialog.cpp2
-rw-r--r--backends/platform/wince/missing/gcc/direct.h1
-rw-r--r--backends/platform/wince/missing/gcc/errno.h1
-rw-r--r--backends/platform/wince/missing/sys/stat.h6
-rw-r--r--backends/platform/wince/missing/time.h2
-rw-r--r--backends/platform/wince/portdefs.h8
6 files changed, 16 insertions, 4 deletions
diff --git a/backends/platform/wince/CELauncherDialog.cpp b/backends/platform/wince/CELauncherDialog.cpp
index a87cb429f8..45e41e5e93 100644
--- a/backends/platform/wince/CELauncherDialog.cpp
+++ b/backends/platform/wince/CELauncherDialog.cpp
@@ -42,7 +42,7 @@ using namespace Common;
class CEAboutDialog : public Dialog {
public:
- CEAboutDialog::CEAboutDialog()
+ CEAboutDialog()
: Dialog(10, 60, 300, 77) {
char tempo[100];
diff --git a/backends/platform/wince/missing/gcc/direct.h b/backends/platform/wince/missing/gcc/direct.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/backends/platform/wince/missing/gcc/direct.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/backends/platform/wince/missing/gcc/errno.h b/backends/platform/wince/missing/gcc/errno.h
new file mode 100644
index 0000000000..7ee9f5e5ba
--- /dev/null
+++ b/backends/platform/wince/missing/gcc/errno.h
@@ -0,0 +1 @@
+/* Header is not present in Windows CE SDK */
diff --git a/backends/platform/wince/missing/sys/stat.h b/backends/platform/wince/missing/sys/stat.h
index d9eef1318d..8f5bda59e1 100644
--- a/backends/platform/wince/missing/sys/stat.h
+++ b/backends/platform/wince/missing/sys/stat.h
@@ -2,6 +2,7 @@
#include <sys/types.h>
+#ifndef __MINGW32CE__
struct stat {
_dev_t st_dev;
_ino_t st_ino;
@@ -16,8 +17,9 @@ struct stat {
time_t st_ctime;
};
+int stat(const char *, struct stat *);
+
+#endif
#define _S_IFDIR 0040000 /* directory */
#define S_IFDIR _S_IFDIR
-
-int stat(const char *, struct stat *);
diff --git a/backends/platform/wince/missing/time.h b/backends/platform/wince/missing/time.h
index 3925b18312..0fd241bdc5 100644
--- a/backends/platform/wince/missing/time.h
+++ b/backends/platform/wince/missing/time.h
@@ -5,6 +5,7 @@
#include <stdlib.h>
+#ifndef __MINGW32CE__
struct tm
{
short tm_year;
@@ -28,3 +29,4 @@ EXT_C struct tm* localtime(time_t* dummy);
unsigned int clock();
#endif
+#endif
diff --git a/backends/platform/wince/portdefs.h b/backends/platform/wince/portdefs.h
index bec4b08a8c..4b9c53e707 100644
--- a/backends/platform/wince/portdefs.h
+++ b/backends/platform/wince/portdefs.h
@@ -75,9 +75,15 @@ char *strpbrk(const char *s, const char *accept);
#include <assert.h>
#include <mmsystem.h>
#include <ctype.h>
-#include <direct.h>
+//#include <direct.h>
#include <time.h>
+#ifdef __MINGW32CE__
+ void *bsearch(const void *, const void *, size_t, size_t, int (*x) (const void *, const void *));
+#endif
+int remove(const char *path);
+int _access(const char *path, int mode);
+
void drawError(char*);
#define vsnprintf _vsnprintf