rewrite endian header to not interfere with the endian system header.

the system header is inconsistently available across platforms.
This header provides the same functionality for less of the cost,
overriding the system macros.
This commit is contained in:
2025-07-15 23:40:43 +02:00
parent db76d6992b
commit ee1811a3a5
2 changed files with 29 additions and 46 deletions

View File

@@ -1,9 +1,9 @@
#include "nbt.h"
#include <endian.h>
#include <stddef.h>
#include <string.h>
#include "../util/compat/endian.h"
#include "../util/types.h"
/* returns the string length from a specific location in the buffer */