diff options
Diffstat (limited to 'newlib/libc/include/sys/param.h')
-rw-r--r-- | newlib/libc/include/sys/param.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h index 3470ef5d0..edb9639cd 100644 --- a/newlib/libc/include/sys/param.h +++ b/newlib/libc/include/sys/param.h @@ -5,14 +5,27 @@ #ifndef _SYS_PARAM_H # define _SYS_PARAM_H +#include <sys/config.h> + # define HZ (60) # define NOFILE (60) # define PATHSIZE (1024) -#ifdef __i386__ #define BIG_ENDIAN 4321 #define LITTLE_ENDIAN 1234 + +#ifdef __IEEE_LITTLE_ENDIAN +#define BYTE_ORDER LITTLE_ENDIAN +#endif + +#ifdef __IEEE_BIG_ENDIAN +#define BYTE_ORDER BIG_ENDIAN +#endif + +#ifdef __i386__ +#ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif +#endif #endif |