X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyportenv.h;h=abc761b6e8c508be860e535730db8c6b10a1535d;hp=0d0d0faa2cf6ca04f4b5340830deaa74e2df3b35;hb=e81a96058aa89f6812e3c5224e26b4b44da3c143;hpb=d43e901b5bf74d8d40dda18f0d5da15c76245510 diff --git a/direct/yportenv.h b/direct/yportenv.h index 0d0d0fa..abc761b 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -19,9 +19,11 @@ /* Definition of types */ +#ifdef CONFIG_YAFFS_DEFINES_TYPES typedef unsigned char u8; typedef unsigned short u16; -typedef unsigned u32; +typedef unsigned int u32; +#endif #ifdef CONFIG_YAFFS_PROVIDE_DEFS @@ -92,7 +94,7 @@ struct iattr { #ifdef CONFIG_YAFFSFS_PROVIDE_VALUES #ifndef O_RDONLY -#define O_RDONLY 00 +#define O_RDONLY 00 #endif #ifndef O_WRONLY @@ -103,8 +105,8 @@ struct iattr { #define O_RDWR 02 #endif -#ifndef O_CREAT -#define O_CREAT 0100 +#ifndef O_CREAT +#define O_CREAT 0100 #endif #ifndef O_EXCL @@ -155,7 +157,7 @@ struct iattr { #define EACCES 13 #endif -#ifndef EXDEV +#ifndef EXDEV #define EXDEV 18 #endif @@ -212,7 +214,7 @@ struct iattr { #endif -// Mode flags +/* Mode flags */ #ifndef S_IFMT #define S_IFMT 0170000 @@ -255,7 +257,7 @@ struct iattr { #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) -#ifndef S_IREAD +#ifndef S_IREAD #define S_IREAD 0000400 #endif