CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Common/missing/endian.h
Views: 1799
1
#if defined(HAVE_ENDIAN_H) && HAVE_ENDIAN_H
2
#include_next <endian.h>
3
#else
4
5
/* minimal version defining only the macros we need in our codebase */
6
7
#define __LITTLE_ENDIAN 1234
8
#define __BIG_ENDIAN 4321
9
10
#ifdef __ARMEB__
11
#define __BYTE_ORDER __BIG_ENDIAN
12
#else
13
#define __BYTE_ORDER __LITTLE_ENDIAN
14
#endif
15
16
#endif
17
18