shithub: qk1

Download patch

ref: e2e4c5b3848a7fe20a3fed5a5dda4d2cab0d129c
parent: 51dc0e0ce9a4adb71c40e59cd6350db500f8e0c9
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Feb 2 18:39:40 EST 2024

posix: rely on meson to define endianess if there is no endian.h

--- a/posix/platform.h
+++ b/posix/platform.h
@@ -42,9 +42,7 @@
 
 #define qctz(x) __builtin_ctz(x)
 
-#ifndef HAVE_ENDIAN_H
-#define QUAKE_LITTLE_ENDIAN
-#else
+#ifdef HAVE_ENDIAN_H
 #include <endian.h>
 #ifndef BYTE_ORDER
 #define LITTLE_ENDIAN __LITTLE_ENDIAN