Loading...
--- Libc/Libc-1534.40.2/include/stdlib.h
+++ Libc/Libc-1592.100.35/include/stdlib.h
@@ -328,6 +328,7 @@
#endif /* __DARWIN_UNIX03 */
#endif /* !_ANSI_SOURCE */
#endif /* UNIFDEF_DRIVERKIT */
+__END_DECLS
#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
#include <machine/types.h>
@@ -337,6 +338,7 @@
#endif /* UNIFDEF_DRIVERKIT */
#include <_types/_uint32_t.h>
+__BEGIN_DECLS
uint32_t arc4random(void);
#ifndef UNIFDEF_DRIVERKIT
void arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/)
@@ -440,7 +442,7 @@
#ifndef UNIFDEF_DRIVERKIT
void sranddev(void);
void srandomdev(void);
-void *reallocf(void *__ptr, size_t __size) __alloc_size(2);
+/* reallocf is now declared in _malloc.h */
long long
strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp)
__API_AVAILABLE(macos(10.16), ios(14.0), tvos(14.0), watchos(7.0));
@@ -455,8 +457,10 @@
extern char *suboptarg; /* getsubopt(3) external variable */
/* valloc is now declared in _malloc.h */
#endif /* UNIFDEF_DRIVERKIT */
+__END_DECLS
#endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
+__BEGIN_DECLS
/* Poison the following routines if -fshort-wchar is set */
#if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU
#pragma GCC poison mbstowcs mbtowc wcstombs wctomb