summaryrefslogtreecommitdiff
path: root/module/kernel.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-11 05:09:51 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-11 05:09:51 +0000
commit42de9db2762a63f69321fc4e89ea81e16a5a206a (patch)
treefbff2a9f70f8a2792d134f5a9dc60d11b2ee0a08 /module/kernel.h
parentb5aa13a47b66955a5198da1f88e1f93f09306a84 (diff)
downloadiconv-42de9db2762a63f69321fc4e89ea81e16a5a206a.tar.gz
iconv-42de9db2762a63f69321fc4e89ea81e16a5a206a.tar.bz2
Integrate module sources into build system.
Various hackery to get it to build for non-RO platforms. A bunch of const-correctness fixes. Hack around strict aliasing warning. Don't expect the menu code to work on 64bit platforms. Sprinkling a bit of intptr_t around may well be some kind of solution. svn path=/trunk/iconv/; revision=5680
Diffstat (limited to 'module/kernel.h')
-rw-r--r--module/kernel.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/module/kernel.h b/module/kernel.h
new file mode 100644
index 0000000..fa92afe
--- /dev/null
+++ b/module/kernel.h
@@ -0,0 +1,19 @@
+/* Our own, minimal, kernel.h */
+
+#ifndef iconv_myswis_h_
+#define iconv_myswis_h_
+
+#include <inttypes.h>
+
+typedef struct _kernel_oserror {
+ int errnum;
+ char errmess[252];
+} _kernel_oserror;
+
+/* Why intptr_t? Because it's got a chance of working on 64bit machines */
+typedef struct _kernel_swi_regs {
+ intptr_t r[10];
+} _kernel_swi_regs;
+
+#endif
+