Skip to content

Commit

Permalink
fix compilation with clang-cl
Browse files Browse the repository at this point in the history
clang-cl errors on implicit functions. Needs the proper header included.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Nov 2, 2023
1 parent 26daf61 commit 1633e37
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/psl.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ typedef SSIZE_T ssize_t;

#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _WIN32
# include <malloc.h>
#endif

#ifdef WITH_LIBICU
Expand Down
2 changes: 2 additions & 0 deletions tests/test-is-public-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include <ctype.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _WIN32
# include <malloc.h>
#endif

#include <libpsl.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/test-is-public-builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <string.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _WIN32
# include <malloc.h>
#endif

#include <libpsl.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/test-is-public.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <string.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _WIN32
# include <malloc.h>
#endif

#include <libpsl.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/test-registrable-domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <string.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _WIN32
# include <malloc.h>
#endif

#include <libpsl.h>
Expand Down

0 comments on commit 1633e37

Please sign in to comment.