aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/missing
diff options
context:
space:
mode:
authorKostas Nakos2007-04-09 19:47:23 +0000
committerKostas Nakos2007-04-09 19:47:23 +0000
commit5dcd53ee9fd0097d5b451004c1215ca7f4934278 (patch)
tree3d1c67de2cd25694db27e83ba76a13c10130a5f0 /backends/platform/wince/missing
parentc909ae47f69bea2da63c4fc91bd2087382ff18aa (diff)
downloadscummvm-rg350-5dcd53ee9fd0097d5b451004c1215ca7f4934278.tar.gz
scummvm-rg350-5dcd53ee9fd0097d5b451004c1215ca7f4934278.tar.bz2
scummvm-rg350-5dcd53ee9fd0097d5b451004c1215ca7f4934278.zip
these belong here and not to the precompiled lib pack
svn-id: r26443
Diffstat (limited to 'backends/platform/wince/missing')
-rw-r--r--backends/platform/wince/missing/gcc/assert.h9
-rw-r--r--backends/platform/wince/missing/gcc/sys/stat.h23
2 files changed, 32 insertions, 0 deletions
diff --git a/backends/platform/wince/missing/gcc/assert.h b/backends/platform/wince/missing/gcc/assert.h
new file mode 100644
index 0000000000..06742532ac
--- /dev/null
+++ b/backends/platform/wince/missing/gcc/assert.h
@@ -0,0 +1,9 @@
+/* Header is not present in Windows CE SDK */
+
+// defined in common/util.h
+void CDECL _declspec(noreturn) error(const char *s, ...);
+
+#define assert(e) ((e) ? (void) 0 : (::error("Assertion failed " #e " (%s, %d)", __FILE__, __LINE__)))
+
+#define abort() ::error("Abort (%s, %d)", __FILE__, __LINE__)
+
diff --git a/backends/platform/wince/missing/gcc/sys/stat.h b/backends/platform/wince/missing/gcc/sys/stat.h
new file mode 100644
index 0000000000..d9eef1318d
--- /dev/null
+++ b/backends/platform/wince/missing/gcc/sys/stat.h
@@ -0,0 +1,23 @@
+/* Header is not present in Windows CE SDK */
+
+#include <sys/types.h>
+
+struct stat {
+ _dev_t st_dev;
+ _ino_t st_ino;
+ unsigned short st_mode;
+ short st_nlink;
+ short st_uid;
+ short st_gid;
+ _dev_t st_rdev;
+ _off_t st_size;
+ time_t st_atime;
+ time_t st_mtime;
+ time_t st_ctime;
+};
+
+
+#define _S_IFDIR 0040000 /* directory */
+#define S_IFDIR _S_IFDIR
+
+int stat(const char *, struct stat *);