aboutsummaryrefslogtreecommitdiffstats
path: root/community/ttaenc/fix-musl.patch
blob: 2be6bb486ff1b9a5e69f5d82fd0f9272c7a83b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ttaenc-3.4.1-src/ttaenc.h.orig
+++ ttaenc-3.4.1-src/ttaenc.h
@@ -101,8 +101,13 @@
 typedef unsigned __int32 uint32;
 typedef unsigned __int64 uint64;
 #else
+#if __GLIBC__
 typedef __uint32_t uint32;
 typedef __uint64_t uint64;
+#else
+typedef uint32_t uint32;
+typedef uint64_t uint64;
+#endif
 #endif
 
 #define PREDICTOR1(x, k)	((int)((((uint64)x << k) - x) >> k))