minor protection to not re-define O_RDONLY if it is already defined

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@432 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-05 10:32:59 +00:00
parent 0343834852
commit 83e92b86fc

View file

@ -24,9 +24,11 @@
#define SEEK_CUR 1
#define SEEK_END 2
#ifndef O_RDONLY
#define O_RDONLY 0
#define O_WRONLY 1
#define O_RDWR 2
#endif
#ifndef SIMULATOR
extern int open(char* pathname, int flags);