Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/param.h')
-rw-r--r--newlib/libc/include/sys/param.h15
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