1
0

080-musl-uint32_t.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --- a/sources/common/include/platform/linux/max.h
  2. +++ b/sources/common/include/platform/linux/max.h
  3. @@ -21,87 +21,7 @@
  4. #ifndef _MAX_H
  5. #define _MAX_H
  6. -#ifdef UINT64_MAX
  7. -#undef UINT64_MAX
  8. -#endif
  9. -
  10. -#ifdef INT64_MAX
  11. -#undef INT64_MAX
  12. -#endif
  13. -
  14. -#ifdef UINT32_MAX
  15. -#undef UINT32_MAX
  16. -#endif
  17. -
  18. -#ifdef INT32_MAX
  19. -#undef INT32_MAX
  20. -#endif
  21. -
  22. -#ifdef UINT16_MAX
  23. -#undef UINT16_MAX
  24. -#endif
  25. -
  26. -#ifdef INT16_MAX
  27. -#undef INT16_MAX
  28. -#endif
  29. -
  30. -#ifdef UINT8_MAX
  31. -#undef UINT8_MAX
  32. -#endif
  33. -
  34. -#ifdef INT8_MAX
  35. -#undef INT8_MAX
  36. -#endif
  37. -
  38. -
  39. -
  40. -#ifndef UINT64_MAX
  41. -#define UINT64_MAX ((uint64_t)(0xffffffffffffffffULL))
  42. -#endif
  43. -
  44. -#ifndef INT64_MAX
  45. -#define INT64_MAX ((int64_t)(0x7fffffffffffffffLL))
  46. -#endif
  47. -
  48. -#ifndef INT64_MIN
  49. -#define INT64_MIN ((int64_t)(0x8000000000000000LL))
  50. -#endif
  51. -
  52. -#ifndef UINT32_MAX
  53. -#define UINT32_MAX ((uint32_t)(0xffffffffUL))
  54. -#endif
  55. -
  56. -#ifndef INT32_MAX
  57. -#define INT32_MAX ((int32_t)(0x7fffffffL))
  58. -#endif
  59. -
  60. -#ifndef INT32_MIN
  61. -#define INT32_MIN ((int32_t)(0x80000000L))
  62. -#endif
  63. -
  64. -#ifndef UINT16_MAX
  65. -#define UINT16_MAX ((uint16_t)(0xffff))
  66. -#endif
  67. -
  68. -#ifndef INT16_MAX
  69. -#define INT16_MAX ((int16_t)(0x7fff))
  70. -#endif
  71. -
  72. -#ifndef INT16_MIN
  73. -#define INT16_MIN ((int16_t)(0x8000))
  74. -#endif
  75. -
  76. -#ifndef UINT8_MAX
  77. -#define UINT8_MAX ((uint8_t)(0xff))
  78. -#endif
  79. -
  80. -#ifndef INT8_MAX
  81. -#define INT8_MAX ((int8_t)(0x7f))
  82. -#endif
  83. -
  84. -#ifndef INT8_MIN
  85. -#define INT8_MIN ((int8_t)(0x80))
  86. -#endif
  87. +#include <stdint.h>
  88. #endif /* _MAX_H */
  89. #endif /* LINUX */