summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport_freedos.h
diff options
context:
space:
mode:
authorpohmelie <multisosnooley@gmail.com>2015-12-15 13:25:00 +0300
committerDamien George <damien.p.george@gmail.com>2015-12-16 13:28:12 +0000
commit64a909ef5113925adef19f275f62473de8ee68c5 (patch)
tree5832beceb38c078d34bff69adbf6fc2cb315730c /unix/mpconfigport_freedos.h
parenta1528364b30844a419675532e997843185448a63 (diff)
downloadmicropython-64a909ef5113925adef19f275f62473de8ee68c5.tar.gz
micropython-64a909ef5113925adef19f275f62473de8ee68c5.zip
unix: Add FreeDos target
Diffstat (limited to 'unix/mpconfigport_freedos.h')
-rw-r--r--unix/mpconfigport_freedos.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/unix/mpconfigport_freedos.h b/unix/mpconfigport_freedos.h
new file mode 100644
index 0000000000..780911fd61
--- /dev/null
+++ b/unix/mpconfigport_freedos.h
@@ -0,0 +1,38 @@
+/*
+ * This file is part of the MicroPython project, http://micropython.org/
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 Damien P. George
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+// options to control how MicroPython is built
+
+#include <mpconfigport.h>
+
+#undef MICROPY_STREAMS_NON_BLOCK
+#define MICROPY_STREAMS_NON_BLOCK (0)
+
+#undef MICROPY_PY_SYS_PLATFORM
+#define MICROPY_PY_SYS_PLATFORM "freedos"
+
+// djgpp dirent struct does not have d_ino field
+#define _DIRENT_HAVE_D_INO (0)