summaryrefslogtreecommitdiff
path: root/repo/pvoc/fix-cstdint-missing.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/pvoc/fix-cstdint-missing.patch
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/pvoc/fix-cstdint-missing.patch')
-rw-r--r--repo/pvoc/fix-cstdint-missing.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/pvoc/fix-cstdint-missing.patch b/repo/pvoc/fix-cstdint-missing.patch
new file mode 100644
index 0000000..785288c
--- /dev/null
+++ b/repo/pvoc/fix-cstdint-missing.patch
@@ -0,0 +1,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;