Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: FileHandle.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/FileHandle.h Tue Jan 08 12:46:36 2013 +0000 +++ b/FileHandle.h Wed Jan 16 12:56:34 2013 +0000 @@ -25,14 +25,16 @@ typedef int FILEHANDLE; #include <stdio.h> -#ifdef __ARMCC_VERSION + +#if defined(__ARMCC_VERSION) || defined(__ICCARM__) typedef int ssize_t; typedef long off_t; + #else -#include <sys/types.h> +# include <sys/types.h> #endif -namespace mbed { +namespace mbed { /** An OO equivalent of the internal FILEHANDLE variable * and associated _sys_* functions. @@ -40,7 +42,7 @@ * FileHandle is an abstract class, needing at least sys_write and * sys_read to be implmented for a simple interactive device. * - * No one ever directly tals to/instanciates a FileHandle - it gets + * No one ever directly tals to/instanciates a FileHandle - it gets * created by FileSystem, and wrapped up by stdio. */ class FileHandle { @@ -114,7 +116,7 @@ lseek(pos, SEEK_SET); return res; } - + virtual ~FileHandle(); };