diff options
Diffstat (limited to 'e2fsprogs/ext2fs/native.c')
-rw-r--r-- | e2fsprogs/ext2fs/native.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/e2fsprogs/ext2fs/native.c b/e2fsprogs/ext2fs/native.c new file mode 100644 index 000000000..85d098967 --- /dev/null +++ b/e2fsprogs/ext2fs/native.c | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * native.c --- returns the ext2_flag for a native byte order | ||
3 | * | ||
4 | * Copyright (C) 1996 Theodore Ts'o. | ||
5 | * | ||
6 | * %Begin-Header% | ||
7 | * This file may be redistributed under the terms of the GNU Public | ||
8 | * License. | ||
9 | * %End-Header% | ||
10 | */ | ||
11 | |||
12 | #include <stdio.h> | ||
13 | |||
14 | #include "ext2_fs.h" | ||
15 | #include "ext2fs.h" | ||
16 | |||
17 | int ext2fs_native_flag(void) | ||
18 | { | ||
19 | #ifdef WORDS_BIGENDIAN | ||
20 | return EXT2_FLAG_SWAP_BYTES; | ||
21 | #else | ||
22 | return 0; | ||
23 | #endif | ||
24 | } | ||
25 | |||
26 | |||
27 | |||