xref: /OK3568_Linux_fs/buildroot/package/caps/0001-Fix-stdint-types-with-musl.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 626e60a82120961ccee117dfcb5c28f72f8a26e5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3Date: Wed, 28 Aug 2019 11:25:49 +0200
4Subject: [PATCH] Fix stdint types with musl
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Fetched from:
10https://github.com/dsacre/meta-lad/blob/master/recipes-multimedia/lv2/caps-lv2/fix-stdint-types-with-musl.patch
11
12Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
13---
14 basics.h | 17 +++++++++--------
15 1 file changed, 9 insertions(+), 8 deletions(-)
16
17diff --git a/basics.h b/basics.h
18index 643d96e..34e5f63 100644
19--- a/basics.h
20+++ b/basics.h
21@@ -39,6 +39,7 @@
22 #define _ISOC9X_SOURCE 1
23
24 #include <stdlib.h>
25+#include <stdint.h>
26 #include <string.h>
27
28 #include <math.h>
29@@ -49,14 +50,14 @@
30
31 #include "ladspa.h"
32
33-typedef __int8_t			int8;
34-typedef __uint8_t			uint8;
35-typedef __int16_t			int16;
36-typedef __uint16_t		uint16;
37-typedef __int32_t			int32;
38-typedef __uint32_t		uint32;
39-typedef __int64_t			int64;
40-typedef __uint64_t		uint64;
41+typedef int8_t			int8;
42+typedef uint8_t			uint8;
43+typedef int16_t			int16;
44+typedef uint16_t		uint16;
45+typedef int32_t			int32;
46+typedef uint32_t		uint32;
47+typedef int64_t			int64;
48+typedef uint64_t		uint64;
49
50 #define MIN_GAIN 1e-6 /* -120 dB */
51 /* smallest non-denormal 32 bit IEEE float is 1.18e-38 */
52--
532.22.0
54
55