Skip to content

Commit

Permalink
Prefer PCRE2POSIX_SHARED to PCRE2_STATIC for pcre2posix
Browse files Browse the repository at this point in the history
Since a8a875e (windows: integrate visibility attributes without
conflicts (PCRE2Project#249), 2023-05-16), the use of PCRE2_STATIC has been
deprecated so set PCRE2POSIX_SHARED instead when relevant.
  • Loading branch information
carenas committed Oct 19, 2023
1 parent 1e146e7 commit 6552473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pcre2-config.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ while test $# -gt 0; do
if test @includedir@ != /usr/include ; then
includes=-I@includedir@
fi
echo $includes @PCRE2_STATIC_CFLAG@
echo $includes @PCRE2POSIX_CFLAG@
else
echo "${usage}" 1>&2
fi
Expand Down
3 changes: 1 addition & 2 deletions src/pcre2posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ POSIX wrapper interface.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
New API code Copyright (c) 2016-2022 University of Cambridge
New API code Copyright (c) 2016-2023 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -132,7 +132,6 @@ set, we ensure here that it has no effect. */
#define PCRE2_CALL_CONVENTION
#endif


#ifndef PCRE2_EXPORT
#define PCRE2_EXPORT
#endif
Expand Down

0 comments on commit 6552473

Please sign in to comment.