python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / ustr / va_args.patch
blobf75b537485d899328869439672bdfd059b34b47a
1 diff --git a/ustr-compiler.h b/ustr-compiler.h
2 index 9e71276..c5f847a 100644
3 --- a/ustr-compiler.h
4 +++ b/ustr-compiler.h
5 @@ -11,17 +11,11 @@
6 #define USTR_CONF_HAVE_ATTR_FMT 1
7 #endif
9 +#include <stdarg.h>
10 /* We assume this is enough,
11 * C99 specifies that va_copy() exists and is a macro */
12 -#ifdef va_copy
13 # define USTR_CONF_HAVE_VA_COPY 1
14 # define USTR__VA_COPY(x, y) va_copy(x, y)
15 -#elif __va_copy
16 -# define USTR_CONF_HAVE_VA_COPY 1
17 -# define USTR__VA_COPY(x, y) __va_copy(x, y)
18 -#else
19 -# define USTR_CONF_HAVE_VA_COPY 0
20 -#endif
22 #ifndef USTR_CONF_HAVE_ATTR_NONNULL
23 #if defined(__GNUC__) && (__GNUC__ > 3) /* not sure */