base: define some byte order macros

This commit is contained in:
K. Lange 2021-06-05 18:51:56 +09:00
parent 9eea7c0677
commit b72a8c7643
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#pragma once
#define _LITTLE_ENDIAN
/* dummy */

View File

@ -4,3 +4,11 @@
#include <stddef.h>
#include <limits.h>
#include <signal.h>
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __BYTE_ORDER __LITLE_ENDIAN
#define BIG_ENDIAN __BIG_ENDIAN
#define LITTLE_ENDIAN __LITTLE_ENDIAN
#define BYTE_ORDER __BYTE_ORDER