endian.h (9eab2a37) endian.h (941ddfd7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 59 unchanged lines hidden (view full) ---

68# elif BYTE_ORDER == PDP_ENDIAN
69# define _PDP_ENDIAN
70# endif
71#endif
72
73#ifdef FREEBSD
74# include <sys/param.h>
75# include <machine/endian.h>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 59 unchanged lines hidden (view full) ---

68# elif BYTE_ORDER == PDP_ENDIAN
69# define _PDP_ENDIAN
70# endif
71#endif
72
73#ifdef FREEBSD
74# include <sys/param.h>
75# include <machine/endian.h>
76#if __FreeBSD_version < 500000
77# if BYTE_ORDER == LITTLE_ENDIAN
76# if BYTE_ORDER == LITTLE_ENDIAN
78# define _LITTLE_ENDIAN
77# undef _BIG_ENDIAN
79# elif BYTE_ORDER == BIG_ENDIAN
78# elif BYTE_ORDER == BIG_ENDIAN
80# define _BIG_ENDIAN
79# undef _LITTLE_ENDIAN
81# elif BYTE_ORDER == PDP_ENDIAN
82# define _PDP_ENDIAN
83# endif
84#endif
80# elif BYTE_ORDER == PDP_ENDIAN
81# define _PDP_ENDIAN
82# endif
83#endif
85#endif
86
87#ifdef SCO
88# include <sys/types.h>
89# include <sys/byteorder.h>
90# if BYTE_ORDER == LITTLE_ENDIAN
91# define _LITTLE_ENDIAN
92# elif BYTE_ORDER == BIG_ENDIAN
93# define _BIG_ENDIAN

--- 138 unchanged lines hidden ---
84
85#ifdef SCO
86# include <sys/types.h>
87# include <sys/byteorder.h>
88# if BYTE_ORDER == LITTLE_ENDIAN
89# define _LITTLE_ENDIAN
90# elif BYTE_ORDER == BIG_ENDIAN
91# define _BIG_ENDIAN

--- 138 unchanged lines hidden ---