aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/reallocarray/stdlib.h
blob: 13496a79d003d56d4c544423b59f588084c73213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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
    #ifdef Y_UCRT_INCLUDE_NEXT
        #include Y_UCRT_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
#endif

#ifdef __cplusplus
extern "C" {
#endif

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

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