blob: ba3e0c8e0913384bf70ce31e96a66e4861d05e11 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
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 Library
8 * General Public License, version 2.
9 * %End-Header%
10 */
11
12#include "config.h"
13#include <stdio.h>
14
15#include "ext2_fs.h"
16#include "ext2fs.h"
17
18int ext2fs_native_flag(void)
19{
20#ifdef WORDS_BIGENDIAN
21 return EXT2_FLAG_SWAP_BYTES;
22#else
23 return 0;
24#endif
25}
26
27
28