0001-Fix-stdint-types-with-musl.patch 1.4 KB

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