3
0

native.c 406 B

123456789101112131415161718192021222324252627
  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. #include <stdio.h>
  12. #include "ext2_fs.h"
  13. #include "ext2fs.h"
  14. int ext2fs_native_flag(void)
  15. {
  16. #ifdef WORDS_BIGENDIAN
  17. return EXT2_FLAG_SWAP_BYTES;
  18. #else
  19. return 0;
  20. #endif
  21. }