From 46755328d27fb5cd0c9f90cd7f79d5f794f0f5fa Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 2 Nov 2023 15:05:25 -0700 Subject: [PATCH] fix compilation with clang-cl clang-cl errors on implicit functions. Needs the proper header included. Signed-off-by: Rosen Penev --- src/psl.c | 2 ++ tests/test-is-public-all.c | 2 ++ tests/test-is-public-builtin.c | 2 ++ tests/test-is-public.c | 2 ++ tests/test-registrable-domain.c | 2 ++ 5 files changed, 10 insertions(+) diff --git a/src/psl.c b/src/psl.c index 6c9d904..caf89e5 100644 --- a/src/psl.c +++ b/src/psl.c @@ -82,6 +82,8 @@ typedef SSIZE_T ssize_t; #ifdef HAVE_ALLOCA_H # include +#elif defined _WIN32 +# include #endif #ifdef WITH_LIBICU diff --git a/tests/test-is-public-all.c b/tests/test-is-public-all.c index baee899..26b3c8a 100644 --- a/tests/test-is-public-all.c +++ b/tests/test-is-public-all.c @@ -38,6 +38,8 @@ #include #ifdef HAVE_ALLOCA_H # include +#elif defined _WIN32 +# include #endif #include diff --git a/tests/test-is-public-builtin.c b/tests/test-is-public-builtin.c index 7394eb0..93eab3c 100644 --- a/tests/test-is-public-builtin.c +++ b/tests/test-is-public-builtin.c @@ -37,6 +37,8 @@ #include #ifdef HAVE_ALLOCA_H # include +#elif defined _WIN32 +# include #endif #include diff --git a/tests/test-is-public.c b/tests/test-is-public.c index 58b07c2..a153a99 100644 --- a/tests/test-is-public.c +++ b/tests/test-is-public.c @@ -37,6 +37,8 @@ #include #ifdef HAVE_ALLOCA_H # include +#elif defined _WIN32 +# include #endif #include diff --git a/tests/test-registrable-domain.c b/tests/test-registrable-domain.c index 775eca5..dcccd3d 100644 --- a/tests/test-registrable-domain.c +++ b/tests/test-registrable-domain.c @@ -37,6 +37,8 @@ #include #ifdef HAVE_ALLOCA_H # include +#elif defined _WIN32 +# include #endif #include