diff options
Diffstat (limited to 'atombios_rev.h')
-rw-r--r-- | atombios_rev.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/atombios_rev.h b/atombios_rev.h index f233685..ed7fd22 100644 --- a/atombios_rev.h +++ b/atombios_rev.h @@ -3,6 +3,16 @@ * Plus addon information for dynamic data tables. */ +#include <endian.h> + +#if __BYTE_ORDER == __LITTLE_ENDIAN +#define ATOM_BIG_ENDIAN 0 +#define ATOM_LITTLE_ENDIAN 1 +#elif __BYTE_ORDER == __BIG_ENDIAN +#define ATOM_BIG_ENDIAN 1 +#define ATOM_LITTLE_ENDIAN 0 +#endif + /* * Dynamic data tables: * Modify table sizes and offset positions by replacing access code |