summaryrefslogtreecommitdiff
path: root/repo/pvoc/fix-cstdint-missing.patch
blob: 785288c11263ebf7410bc53809af0839258d68c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- build.orig/basics.h	2023-01-28 23:45:55.808091774 +0000
+++ build/basics.h	2023-01-28 23:47:00.731096985 +0000
@@ -38,6 +38,7 @@
 #define _ISOC99_SOURCE 1
 #define _ISOC9X_SOURCE 1
 
+#include <cstdint>
 #include <malloc.h>
 #include <stdlib.h>
 #include <string.h>
@@ -77,14 +78,14 @@
 #define MIN_GAIN .000001 /* -120 dB */
 #define NOISE_FLOOR .00000000000005 /* -266 dB */
 
-typedef __int8_t			int8;
-typedef __uint8_t			uint8;
-typedef __int16_t			int16;
-typedef __uint16_t		uint16;
-typedef __int32_t			int32;
-typedef __uint32_t		uint32;
-typedef __int64_t			int64;
-typedef __uint64_t		uint64;
+typedef int8_t			int8;
+typedef uint8_t			uint8;
+typedef int16_t			int16;
+typedef uint16_t		uint16;
+typedef int32_t			int32;
+typedef uint32_t		uint32;
+typedef int64_t			int64;
+typedef uint64_t		uint64;
 
 typedef struct {
 	const char * name;