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.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h
index edb9639cd..4e8e56285 100644
--- a/newlib/libc/include/sys/param.h
+++ b/newlib/libc/include/sys/param.h
@@ -7,24 +7,22 @@
#include <sys/config.h>
-# define HZ (60)
-# define NOFILE (60)
-# define PATHSIZE (1024)
-
+#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
+#endif
+#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
-
-#ifdef __IEEE_LITTLE_ENDIAN
-#define BYTE_ORDER LITTLE_ENDIAN
#endif
-#ifdef __IEEE_BIG_ENDIAN
-#define BYTE_ORDER BIG_ENDIAN
-#endif
+# define HZ (60)
+# define NOFILE (60)
+# define PATHSIZE (1024)
-#ifdef __i386__
#ifndef BYTE_ORDER
+#ifdef __IEEE_LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
+#else
+#define BYTE_ORDER BIG_ENDIAN
#endif
#endif