write a portable version of endian.h, to replace the system's endian.h.

utilising GNU C standard library for some of the functionality, or GNU C
extensions.
This commit is contained in:
2025-08-29 11:46:02 +02:00
parent 8b952fb86f
commit 8a5afd6915
5 changed files with 52 additions and 9 deletions

View File

@@ -3,12 +3,12 @@
#include "mcx.h"
#include <assert.h>
#include <endian.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "../util/compat/endian.h"
#include "../util/intdef.h"
#define TABLE 0x2000 // table byte size