mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-30 02:27:38 +01:00
Move endian-related defs from tdep-ia64.h to here.
(Logical change 1.75)
This commit is contained in:
parent
4f8ab6abb9
commit
a04f38ef19
1 changed files with 12 additions and 0 deletions
|
@ -39,6 +39,18 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_ENDIAN_H
|
||||||
|
# include <endian.h>
|
||||||
|
#else
|
||||||
|
# define __LITTLE_ENDIAN 1234
|
||||||
|
# define __BIG_ENDIAN 4321
|
||||||
|
# if defined(__hpux)
|
||||||
|
# define __BYTE_ORDER __LITTLE_ENDIAN
|
||||||
|
# else
|
||||||
|
# error Host has unknown byte-order.
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
|
# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
|
||||||
# define HIDDEN __attribute__((visibility ("hidden")))
|
# define HIDDEN __attribute__((visibility ("hidden")))
|
||||||
|
|
Loading…
Reference in a new issue