67 lines
2.2 KiB
Diff
67 lines
2.2 KiB
Diff
|
From ba9bb2bccdf67a8a202c578fcf09a3aa6dda4c63 Mon Sep 17 00:00:00 2001
|
||
|
From: q66 <daniel@octaforge.org>
|
||
|
Date: Fri, 10 Apr 2020 20:22:17 +0200
|
||
|
Subject: [PATCH] MonkeysAudio: patch out bad endian definitions breaking
|
||
|
builds
|
||
|
|
||
|
---
|
||
|
Shared/All.h | 8 +-------
|
||
|
Source/Shared/All.h | 8 +-------
|
||
|
2 files changed, 2 insertions(+), 14 deletions(-)
|
||
|
|
||
|
diff --git Shared/All.h Shared/All.h
|
||
|
index 6dfb669..cc9a988 100644
|
||
|
--- Shared/All.h
|
||
|
+++ Shared/All.h
|
||
|
@@ -45,6 +45,7 @@ Global includes
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <wchar.h>
|
||
|
+ #include <endian.h>
|
||
|
#include "NoWindows.h"
|
||
|
#endif
|
||
|
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
|
||
|
@@ -246,13 +247,6 @@ Global defines
|
||
|
#define APE_FILENAME_SLASH '/'
|
||
|
#endif
|
||
|
|
||
|
-/*****************************************************************************************
|
||
|
-Byte order
|
||
|
-*****************************************************************************************/
|
||
|
-#define __LITTLE_ENDIAN 1234
|
||
|
-#define __BIG_ENDIAN 4321
|
||
|
-#define __BYTE_ORDER __LITTLE_ENDIAN
|
||
|
-
|
||
|
/*****************************************************************************************
|
||
|
Macros
|
||
|
*****************************************************************************************/
|
||
|
diff --git Source/Shared/All.h Source/Shared/All.h
|
||
|
index 6dfb669..cc9a988 100644
|
||
|
--- Source/Shared/All.h
|
||
|
+++ Source/Shared/All.h
|
||
|
@@ -45,6 +45,7 @@ Global includes
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <wchar.h>
|
||
|
+ #include <endian.h>
|
||
|
#include "NoWindows.h"
|
||
|
#endif
|
||
|
#define ape_max(a,b) (((a) > (b)) ? (a) : (b))
|
||
|
@@ -246,13 +247,6 @@ Global defines
|
||
|
#define APE_FILENAME_SLASH '/'
|
||
|
#endif
|
||
|
|
||
|
-/*****************************************************************************************
|
||
|
-Byte order
|
||
|
-*****************************************************************************************/
|
||
|
-#define __LITTLE_ENDIAN 1234
|
||
|
-#define __BIG_ENDIAN 4321
|
||
|
-#define __BYTE_ORDER __LITTLE_ENDIAN
|
||
|
-
|
||
|
/*****************************************************************************************
|
||
|
Macros
|
||
|
*****************************************************************************************/
|
||
|
--
|
||
|
2.25.1
|
||
|
|