First Commit
[librecmc/package-feed.git] / multimedia / crtmpserver / patches / 080-musl-uint32_t.patch
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  
7 -#ifdef UINT64_MAX
8 -#undef UINT64_MAX
9 -#endif
10 -
11 -#ifdef INT64_MAX
12 -#undef INT64_MAX
13 -#endif
14 -
15 -#ifdef UINT32_MAX
16 -#undef UINT32_MAX
17 -#endif
18 -
19 -#ifdef INT32_MAX
20 -#undef INT32_MAX
21 -#endif
22 -
23 -#ifdef UINT16_MAX
24 -#undef UINT16_MAX
25 -#endif
26 -
27 -#ifdef INT16_MAX
28 -#undef INT16_MAX
29 -#endif
30 -
31 -#ifdef UINT8_MAX
32 -#undef UINT8_MAX
33 -#endif
34 -
35 -#ifdef INT8_MAX
36 -#undef INT8_MAX
37 -#endif
38 -
39 -
40 -
41 -#ifndef UINT64_MAX
42 -#define UINT64_MAX ((uint64_t)(0xffffffffffffffffULL))
43 -#endif
44 -
45 -#ifndef INT64_MAX
46 -#define INT64_MAX  ((int64_t)(0x7fffffffffffffffLL))
47 -#endif
48 -
49 -#ifndef INT64_MIN
50 -#define INT64_MIN  ((int64_t)(0x8000000000000000LL))
51 -#endif
52 -
53 -#ifndef UINT32_MAX
54 -#define UINT32_MAX ((uint32_t)(0xffffffffUL))
55 -#endif
56 -
57 -#ifndef INT32_MAX
58 -#define INT32_MAX  ((int32_t)(0x7fffffffL))
59 -#endif
60 -
61 -#ifndef INT32_MIN
62 -#define INT32_MIN  ((int32_t)(0x80000000L))
63 -#endif
64 -
65 -#ifndef UINT16_MAX
66 -#define UINT16_MAX ((uint16_t)(0xffff))
67 -#endif
68 -
69 -#ifndef INT16_MAX
70 -#define INT16_MAX  ((int16_t)(0x7fff))
71 -#endif
72 -
73 -#ifndef INT16_MIN
74 -#define INT16_MIN  ((int16_t)(0x8000))
75 -#endif
76 -
77 -#ifndef UINT8_MAX
78 -#define UINT8_MAX  ((uint8_t)(0xff))
79 -#endif
80 -
81 -#ifndef INT8_MAX
82 -#define INT8_MAX   ((int8_t)(0x7f))
83 -#endif
84 -
85 -#ifndef INT8_MIN
86 -#define INT8_MIN   ((int8_t)(0x80))
87 -#endif
88 +#include <stdint.h>
89  
90  #endif /* _MAX_H */
91  #endif /* LINUX */