aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/reallocarray/stdlib.h
blob: d237c8b6d68dac49b0d0dfa8c32cf1884c13d852 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// The lack of #pragma once is intentional:
// its presence breaks compilation of contrib/tools/unbound somehow.

#if defined(__GNUC__) || defined(__clang__)
    #include_next <stdlib.h>
#else
    #define Y_UCRT_INCLUDE_NEXT(x) <Y_UCRT_INCLUDE/x>
    #include Y_UCRT_INCLUDE_NEXT(stdlib.h)
    #undef Y_UCRT_INCLUDE_NEXT
#endif

#ifdef __cplusplus
extern "C" {
#endif

void* reallocarray(void*, size_t, size_t);

#ifdef __cplusplus
} // extern "C"
#endif