aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/reallocarray/stdlib.h
blob: 4b27573a37058b3c3210a4b8682c251d5ab529f9 (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_MSVC_INCLUDE_NEXT(x) <Y_UCRT_INCLUDE/x>
    #include Y_MSVC_INCLUDE_NEXT(stdlib.h)
    #undef Y_MSVC_INCLUDE_NEXT
#endif

#ifdef __cplusplus
extern "C" {
#endif

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

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