~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to system/include/libc/machine/endian.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __MACHINE_ENDIAN_H__
2
 
 
3
 
#include <sys/config.h>
4
 
 
5
 
#ifndef BIG_ENDIAN
6
 
#define BIG_ENDIAN 4321
7
 
#endif
8
 
#ifndef LITTLE_ENDIAN
9
 
#define LITTLE_ENDIAN 1234
10
 
#endif
11
 
 
12
 
#ifndef __LITTLE_ENDIAN
13
 
#define __LITTLE_ENDIAN LITTLE_ENDIAN
14
 
#endif
15
 
#ifndef __BIG_ENDIAN
16
 
#define __BIG_ENDIAN BIG_ENDIAN
17
 
#endif
18
 
 
19
 
#ifndef BYTE_ORDER
20
 
#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN)
21
 
#define BYTE_ORDER LITTLE_ENDIAN
22
 
#else
23
 
#define BYTE_ORDER BIG_ENDIAN
24
 
#endif
25
 
#endif
26
 
 
27
 
#ifndef __BYTE_ORDER
28
 
#define __BYTE_ORDER BYTE_ORDER
29
 
#endif
30
 
 
31
 
#endif /* __MACHINE_ENDIAN_H__ */