1 diff --git a/include/ext4_oflags.h b/include/ext4_oflags.h
2 index 7f7be7e..87f42ef 100644
3 --- a/include/ext4_oflags.h
4 +++ b/include/ext4_oflags.h
5 @@ -45,51 +45,33 @@ extern "C" {
7 #if CONFIG_HAVE_OWN_OFLAGS
22 - #define O_CREAT 0100
30 - #define O_TRUNC 01000
34 - #define O_APPEND 02000
36 + #define LWEXT4_FLAGS(flags) LWEXT4_##flags
39 + LWEXT4_FLAGS(O_RDONLY) = 00,
40 + LWEXT4_FLAGS(O_WRONLY) = 01,
41 + LWEXT4_FLAGS(O_RDWR) = 02,
42 + LWEXT4_FLAGS(O_CREAT) = 0100,
43 + LWEXT4_FLAGS(O_EXCL) = 0200,
44 + LWEXT4_FLAGS(O_TRUNC) = 01000,
45 + LWEXT4_FLAGS(O_APPEND) = 02000
48 /********************************FILE SEEK FLAGS*****************************/
61 + enum ext4_seek_flags {
62 + LWEXT4_FLAGS(SEEK_SET) = 0,
63 + LWEXT4_FLAGS(SEEK_CUR) = 1,
64 + LWEXT4_FLAGS(SEEK_END) = 2
72 + #define LWEXT4_FLAGS(flags) (flags)
77 @@ -101,3 +83,4 @@ extern "C" {