diff options
Diffstat (limited to 'features/mkc_imp.f_reallocarr.mk')
-rw-r--r-- | features/mkc_imp.f_reallocarr.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/mkc_imp.f_reallocarr.mk b/features/mkc_imp.f_reallocarr.mk new file mode 100644 index 0000000..e47ba4e --- /dev/null +++ b/features/mkc_imp.f_reallocarr.mk @@ -0,0 +1,19 @@ +# Copyright (c) 2021 by Aleksey Cheusov +# +# See LICENSE file in the distribution. + +.ifndef _MKC_IMP_F_REALLOCARR_MK +_MKC_IMP_F_REALLOCARR_MK := 1 + +MKC_CHECK_FUNCS3 += reallocarr:stdlib.h +MKC_CHECK_FUNCLIBS += reallocarr + +.include <mkc.conf.mk> + +.if ${HAVE_FUNCLIB.reallocarr:U} != 1 +MKC_SRCS += ${FEATURESDIR}/reallocarr/mkc_reallocarr.c +.endif + +CPPFLAGS += -D_MKC_CHECK_REALLOCARR + +.endif #_MKC_IMP_F_REALLOCARR_MK |