Now defines BFS_NATIVE_ENDIAN if BFS is compiled only for native endians.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-19 20:27:14 +00:00
parent 9351856593
commit fe58583daa
@@ -1,7 +1,7 @@
/* /*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2003-2004, Axel Dörfler, [email protected].
** Distributed under the terms of the OpenBeOS License. * Distributed under the terms of the MIT License.
*/ */
#ifndef BFS_ENDIAN_H #ifndef BFS_ENDIAN_H
#define BFS_ENDIAN_H #define BFS_ENDIAN_H
@@ -18,6 +18,7 @@
#if defined(BFS_LITTLE_ENDIAN_ONLY) && B_HOST_IS_LENDIAN \ #if defined(BFS_LITTLE_ENDIAN_ONLY) && B_HOST_IS_LENDIAN \
|| defined(BFS_BIG_ENDIAN_ONLY) && B_HOST_IS_BENDIAN || defined(BFS_BIG_ENDIAN_ONLY) && B_HOST_IS_BENDIAN
/* host is BFS endian */ /* host is BFS endian */
# define BFS_NATIVE_ENDIAN
# define BFS_ENDIAN_TO_HOST_INT16(value) value # define BFS_ENDIAN_TO_HOST_INT16(value) value
# define BFS_ENDIAN_TO_HOST_INT32(value) value # define BFS_ENDIAN_TO_HOST_INT32(value) value
# define BFS_ENDIAN_TO_HOST_INT64(value) value # define BFS_ENDIAN_TO_HOST_INT64(value) value