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: FileBase.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/FileBase.h Tue Jan 08 12:46:36 2013 +0000
+++ b/FileBase.h Wed Jan 16 12:56:34 2013 +0000
@@ -26,7 +26,7 @@
#include <stdio.h>
-#ifdef __ARMCC_VERSION
+#if defined(__ARMCC_VERSION) || defined(__ICCARM__)
# define O_RDONLY 0
# define O_WRONLY 1
# define O_RDWR 2
@@ -58,19 +58,19 @@
class FileBase {
public:
FileBase(const char *name, PathType t);
-
+
virtual ~FileBase();
-
+
const char* getName(void);
PathType getPathType(void);
-
+
static FileBase *lookup(const char *name, unsigned int len);
-
+
static FileBase *get(int n);
-protected:
+protected:
static FileBase *_head;
-
+
FileBase *_next;
const char *_name;
PathType _path_type;
