Support for MSP430 launchpad.
Fork of mbed by
Diff: FileHandle.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
diff -r 71b101360fb9 -r d722ed6a4237 FileHandle.h --- 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(); };