diff options
| author | Damien George | 2017-09-06 13:40:51 +1000 |
|---|---|---|
| committer | Damien George | 2017-09-06 13:40:51 +1000 |
| commit | 01dd7804b87d60b2deab16712eccb3b97351a9b7 (patch) | |
| tree | 1aa21f38a872b8e62a3d4e4f74f68033c6f827e4 /ports/pic16bit/unistd.h | |
| parent | a9862b30068fc9df1022f08019fb35aaa5085f64 (diff) | |
ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
Diffstat (limited to 'ports/pic16bit/unistd.h')
| -rw-r--r-- | ports/pic16bit/unistd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ports/pic16bit/unistd.h b/ports/pic16bit/unistd.h new file mode 100644 index 000000000..23c5e54c7 --- /dev/null +++ b/ports/pic16bit/unistd.h @@ -0,0 +1,11 @@ +#ifndef MICROPY_INCLUDED_PIC16BIT_UNISTD_H +#define MICROPY_INCLUDED_PIC16BIT_UNISTD_H + +// XC16 compiler doesn't seem to have unistd.h file + +#define SEEK_SET 0 +#define SEEK_CUR 1 + +typedef int ssize_t; + +#endif // MICROPY_INCLUDED_PIC16BIT_UNISTD_H |
