aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authormikhnenko <mikhnenko@yandex-team.com>2023-05-24 11:47:56 +0300
committermikhnenko <mikhnenko@yandex-team.com>2023-05-24 11:47:56 +0300
commit128c5e5307c946da48dc581ac149b38c1e3f2552 (patch)
tree30a42447e35d499f51ac370389f98f12ec10c0e3 /contrib/libs
parent4220537bd24e6ebb9be59503f6ff32486900b861 (diff)
downloadydb-128c5e5307c946da48dc581ac149b38c1e3f2552.tar.gz
Do not undef Y_UCRT_INCLUDE_NEXT if we did not define it
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/libc_compat/reallocarray/stdlib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/libs/libc_compat/reallocarray/stdlib.h b/contrib/libs/libc_compat/reallocarray/stdlib.h
index d237c8b6d6..13496a79d0 100644
--- a/contrib/libs/libc_compat/reallocarray/stdlib.h
+++ b/contrib/libs/libc_compat/reallocarray/stdlib.h
@@ -4,9 +4,13 @@
#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
+ #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