diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-06 19:22:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-06 19:22:49 +0000 |
commit | ffb96c090015f49059d146deefbbd7e1f6baa642 (patch) | |
tree | 53229e8793e289f18a7453b144850b6583078c32 /include/endian.h | |
parent | afb85e9d6ca1de8f1ecb267e8c30b88ba4382820 (diff) |
Some more major updates to further superate ucLibc from the kernel
headers (the way it has been done in GNU libc).
-Erik
Diffstat (limited to 'include/endian.h')
-rw-r--r-- | include/endian.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/endian.h b/include/endian.h index 593b41963..109678aea 100644 --- a/include/endian.h +++ b/include/endian.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,6 +18,7 @@ #ifndef _ENDIAN_H #define _ENDIAN_H 1 + #include <features.h> /* Definitions for byte order, according to significance of bytes, from low @@ -31,13 +32,19 @@ #define __PDP_ENDIAN 3412 /* This file defines `__BYTE_ORDER' for the particular machine. */ -#include <bytesex.h> +#include <bits/endian.h> + +/* Some machines may need to use a different endianness for floating point + values. */ +#ifndef __FLOAT_WORD_ORDER +# define __FLOAT_WORD_ORDER __BYTE_ORDER +#endif #ifdef __USE_BSD -#define LITTLE_ENDIAN __LITTLE_ENDIAN -#define BIG_ENDIAN __BIG_ENDIAN -#define PDP_ENDIAN __PDP_ENDIAN -#define BYTE_ORDER __BYTE_ORDER +# define LITTLE_ENDIAN __LITTLE_ENDIAN +# define BIG_ENDIAN __BIG_ENDIAN +# define PDP_ENDIAN __PDP_ENDIAN +# define BYTE_ORDER __BYTE_ORDER #endif #endif /* endian.h */ |