diff options
Diffstat (limited to 'repo/caps/fix-cstdint-missing.patch')
-rw-r--r-- | repo/caps/fix-cstdint-missing.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/caps/fix-cstdint-missing.patch b/repo/caps/fix-cstdint-missing.patch new file mode 100644 index 0000000..1cb69fd --- /dev/null +++ b/repo/caps/fix-cstdint-missing.patch @@ -0,0 +1,33 @@ +--- build/basics.h 2023-01-28 14:09:49.976317796 +0000 ++++ build.orig/basics.h 2023-01-28 14:08:45.279312604 +0000 +@@ -38,6 +38,7 @@ + #define _ISOC99_SOURCE 1 + #define _ISOC9X_SOURCE 1 + ++#include <cstdint> + #include <stdlib.h> + #include <string.h> + +@@ -50,14 +49,14 @@ + + #include "ladspa.h" + +-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; + + #define MIN_GAIN 1e-6 /* -120 dB */ + /* smallest non-denormal 32 bit IEEE float is 1.18e-38 */ |